镜像自地址
https://github.com/MINT-SJTU/Evo-RL.git
已同步 2026-11-21 02:27:04 +00:00
test(ci): fix fast tests for ACP config and sarm import guards
- update ACP training tests to use current ACPConfig fields and shared ACP tag constants - skip sarm subtask annotation tests when Qwen3VLMoe symbol is unavailable in transformers - keep changes scoped to fast-tests paths and preserve runtime behavior
这个提交包含在:
@ -9,6 +9,7 @@ from lerobot.configs.types import FeatureType, PolicyFeature
|
||||
from lerobot.policies.pi05.configuration_pi05 import PI05Config
|
||||
from lerobot.policies.pi05.processor_pi05 import make_pi05_pre_post_processors
|
||||
from lerobot.rl.acp_hook import build_acp_raw_batch_hook
|
||||
from lerobot.rl.acp_tags import ACP_NEGATIVE_TAG, ACP_POSITIVE_TAG
|
||||
from lerobot.utils.constants import OBS_LANGUAGE_ATTENTION_MASK, OBS_LANGUAGE_TOKENS
|
||||
from tests.utils import require_package
|
||||
|
||||
@ -78,8 +79,6 @@ def test_acp_prompt_reaches_pi05_tokenizer(mock_auto_tokenizer):
|
||||
ACPConfig(
|
||||
enable=True,
|
||||
indicator_field="complementary_info.acp_indicator",
|
||||
positive_tag="Advantage: positive",
|
||||
negative_tag="Advantage: negative",
|
||||
indicator_dropout_prob=0.0,
|
||||
),
|
||||
seed=123,
|
||||
@ -101,8 +100,8 @@ def test_acp_prompt_reaches_pi05_tokenizer(mock_auto_tokenizer):
|
||||
|
||||
prompts = tracking_tokenizer.calls[-1]
|
||||
assert len(prompts) == 2
|
||||
assert "Advantage: positive" in prompts[0]
|
||||
assert "Advantage: negative" in prompts[1]
|
||||
assert ACP_POSITIVE_TAG in prompts[0]
|
||||
assert ACP_NEGATIVE_TAG in prompts[1]
|
||||
assert prompts[0].startswith("Task: Pick bottle")
|
||||
assert "State:" in prompts[0]
|
||||
assert OBS_LANGUAGE_TOKENS in out
|
||||
|
||||
在新工单中引用
屏蔽一个用户