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
Register qwen3_5_moe_text for text-only Qwen3.6 export (#445)
## What
Adds the missing text-only registry sibling for **Qwen3.6-35B-A3B**
(`Qwen/Qwen3.6-35B-A3B`, HF `model_type=qwen3_5_moe` with a
`vision_config`).
Every other Qwen/Gemma VL family registers a `*_text` sibling
(`gemma3_text`, `qwen3_vl_text`, `qwen3_5_vl_text`), but the MoE VL did
not. As a result:
- `registry.get("qwen3_5_moe_text")` raised `KeyError` (the VL
`text_config`'s own `model_type` is `qwen3_5_moe_text`); and
- `build(..., text_only=True)` on the VL checkpoint failed — no
`_TEXT_ONLY_MODEL_TYPE` entry for `qwen3_5_moe_vl`.
## How
`Qwen35MoECausalLMModel.preprocess_weights` already strips the
`language_model.` prefix, drops `visual.`/MTP keys, and unpacks fused
MoE experts, so it consumes the VL text weights directly (no new class
needed).
- Register `qwen3_5_moe_text` → `Qwen35MoECausalLMModel`.
- Wire `_TEXT_ONLY_MODEL_TYPE`: `qwen3_5_moe_vl` → `qwen3_5_moe_text` (+
idempotent self-map).
- Add default-id (`Qwen/Qwen3.6-35B-A3B`) and family (`qwen`) map
entries.
- Add an L1 build-graph tiny config reusing the `qwen3_5_moe` hybrid-MoE
config (added to `_CHECKER_SKIP_MODELS` like its sibling, since it uses
`LinearAttention`/`CausalConvWithState` custom ops).
## Verification
- L1 build + registry-completeness pass; broader qwen suite green (107
passed).
- Verified against the **real** Qwen3.6 config (config-only) that both
`text_only=True` routing and `text_config.model_type` now resolve to
`Qwen35MoECausalLMModel` (previously a `KeyError`).
> Note: a full weight-level (L4/L5) export requires the 35B checkpoint +
GPU and is out of scope here; this PR is the routing/registration fix
with L1 coverage.
Please review — do not merge yet.
---------
Signed-off-by: justinchuby <justinchuby@users.noreply.github.com>
Signed-off-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
0 commit comments