You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[None][fix] Remove HF cache dependency from Skywork-R1V2 unit tests (#242)
* [None][fix] Remove HF cache dependency from Skywork-R1V2 unit tests
Replace SkyworkChatConfig (loaded via AutoConfig with trust_remote_code,
which requires the checkpoint in the local HF cache) with a plain
Qwen2Config passed directly to SkyworkR1V2ForConditionalGeneration.
The model's __init__ already has a fallback:
llm_config = getattr(config, "llm_config", config)
so passing Qwen2Config directly works without any wrapper config.
The vision tower is simply not instantiated (no vision_config attr).
This makes all tests runnable in CI without requiring the full 38B
checkpoint in the local HF cache.
Signed-off-by: gramnarayan <105831528+govind-ramnarayan@users.noreply.github.com>
* [None][fix] Remove HF cache dependency from Skywork-R1V2 unit tests
Replace AutoConfig.from_pretrained(..., local_files_only=True) with
minimal faithful copies of SkyworkChatConfig and SkyworkVisionConfig
defined in the test file (same pattern used for HF modeling classes not
in transformers).
This removes the module-level pytest.skip that silently skipped all
Skywork tests in CI when the 38B checkpoint was absent. Tests now run
without any HF checkpoint, while still exercising the real config-
wrapping behavior (nested llm_config, vision_config, vision weight keys).
Signed-off-by: gramnarayan <105831528+govind-ramnarayan@users.noreply.github.com>
---------
Signed-off-by: gramnarayan <105831528+govind-ramnarayan@users.noreply.github.com>
0 commit comments