[LoRA] Support modules_to_save for sequence classification (#53555)

Signed-off-by: linitra24 <Joy25810@foxmail.com>
Signed-off-by: linitra24 <renshuang.zhou@daocloud.io>
Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
linitra24
2026-09-16 07:15:42 -07:00
committed by GitHub
co-authored by Jee Jee Li
parent ec4a3a5370
commit c81eb3e69c
20 changed files with 681 additions and 21 deletions
+24
View File
@@ -270,6 +270,30 @@ def qwen3_woofing_lora_files():
return hf_api().snapshot_download(repo_id="Jackmin108/Qwen3-0.6B-Woof-LoRA")
@pytest.fixture(scope="session")
def qwen3_guard_star_trek_lora_files():
return hf_api().snapshot_download(
repo_id="geoffmunn/Qwen3Guard-StarTrek-Classification-0.6B",
allow_patterns=["adapter_config.json", "adapter_model.safetensors"],
)
@pytest.fixture(scope="session")
def qwen3_guard_new_zealand_lora_files():
return hf_api().snapshot_download(
repo_id="geoffmunn/Qwen3Guard-NewZealand-Classification-0.6B",
allow_patterns=["adapter_config.json", "adapter_model.safetensors"],
)
@pytest.fixture(scope="session")
def skywork_qwen3_reward_lora_files():
return hf_api().snapshot_download(
repo_id="AmirMohseni/skywork-qwen3-0.6b-reward-lora",
allow_patterns=["adapter_config.json", "adapter_model.safetensors"],
)
@pytest.fixture(scope="session")
def deepseekv2_lora_files():
return hf_api().snapshot_download(repo_id="wuchen01/DeepSeek-V2-Lite-Chat-All-LoRA")