[Model] Support Decision 3.0 decision models (vllm-sr/d3) (#61565)

Signed-off-by: Xunzhuo Liu <xunzhuo.liu@amd.com>
This commit is contained in:
Xunzhuo
2026-10-14 17:10:55 +00:00
committed by GitHub
parent 3895a8babe
commit 89cab55086
12 changed files with 683 additions and 2 deletions
@@ -642,6 +642,17 @@ class Qwen3_5ModelArchConfigConvertor(ModelArchConfigConvertorBase):
hf_config.joint_head_config = get_hf_file_to_dict(
"joint_head_config.json", model_path, revision
)
elif getattr(hf_config, "architectures", None) == ["Qwen3_5Model"]:
# Decision 3.0 checkpoints are a bare backbone plus a code readout
# described by decision_config.json.
model_path = hf_config.name_or_path
if model_path and file_or_path_exists(
model_path, "decision_config.json", revision
):
hf_config.architectures = ["D3ForSequenceClassification"]
hf_config.decision_config = get_hf_file_to_dict(
"decision_config.json", model_path, revision
)
super().__init__(hf_config, hf_text_config, revision)