Commit b6d4db0
Register qwen3_5_moe_text for text-only Qwen3.6 export
Qwen/Qwen3.6-35B-A3B ships model_type=qwen3_5_moe with a vision_config, so
the builder overrides it to qwen3_5_moe_vl and unwraps text_config (whose own
model_type is qwen3_5_moe_text). Unlike every other VL family (gemma3_text,
qwen3_vl_text, qwen3_5_vl_text), the MoE VL had no registered text-only
sibling, so:
- registry.get("qwen3_5_moe_text") raised KeyError, and
- build(..., text_only=True) on the VL checkpoint failed (no
_TEXT_ONLY_MODEL_TYPE entry for qwen3_5_moe_vl).
Qwen35MoECausalLMModel already strips the language_model. prefix, drops
visual./MTP keys, and unpacks fused experts, so it consumes the VL text
weights directly. Register qwen3_5_moe_text -> Qwen35MoECausalLMModel, wire
the text-only override (qwen3_5_moe_vl -> qwen3_5_moe_text, idempotent
self-map), and add default-id/family map entries.
Add an L1 build-graph config (reusing the qwen3_5_moe hybrid MoE tiny config)
so registry-completeness passes and the new key builds. Verified against the
real Qwen3.6 config that both text_only routing and text_config.model_type
now resolve to Qwen35MoECausalLMModel.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: justinchuby <justinchuby@users.noreply.github.com>1 parent 8a565d7 commit b6d4db0
3 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
607 | 614 | | |
608 | 615 | | |
609 | 616 | | |
| |||
791 | 798 | | |
792 | 799 | | |
793 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
794 | 807 | | |
795 | 808 | | |
796 | 809 | | |
| |||
894 | 907 | | |
895 | 908 | | |
896 | 909 | | |
| 910 | + | |
897 | 911 | | |
898 | 912 | | |
899 | 913 | | |
| |||
1141 | 1155 | | |
1142 | 1156 | | |
1143 | 1157 | | |
| 1158 | + | |
1144 | 1159 | | |
1145 | 1160 | | |
1146 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
522 | 545 | | |
523 | 546 | | |
524 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments