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
{{ message }}
Repository navigation
Bug: text-only Qwen3.5/Qwen3.6 MoE models are incorrectly auto-detected as VLM #156
Bug: text-only Qwen3.5/Qwen3.6 MoE models are auto-detected as VLM and fail without vision_config
Summary
ModelArchitectureProbe currently treats qwen3_5, qwen3.5, and qwen3_5_moe as unconditional vision model types.
This causes text-only Qwen3.5/Qwen3.6 checkpoints that use model_type: "qwen3_5_moe" to be routed through the VLM loader even when config.json contains no vision_config.
Because supportsVision checks membership in this set, the model_type alone is sufficient to force VLM mode.
This is ambiguous in the same way already documented in the file for Gemma 4: the same architecture/model type can exist in both text-only and multimodal forms, so model_type alone should not force VLM routing.
Proposed fix
Remove the three Qwen3.5/Qwen3.6 entries from knownVisionModelTypes and rely on the existing vision-specific indicators:
vision_config
known vision processor
image_processor_type
This preserves VLM detection for genuine multimodal checkpoints while allowing text-only Qwen3.5/Qwen3.6 MoE models to use the LLM loader.
Thanks for the excellent root-cause writeup — exact same ambiguity class as #152's gemma4 fix, and your proposed fix is what's applied. PR up here: #157, watching CI now.
Merged: SwiftLM#157. All 14 CI jobs green, including speculative-decoding — confirmed this doesn't interact with the earlier gemma4/qwen3_5 auto-detect guard from #152. Thanks again for the thorough diagnosis and fix proposal.
Activity
traderjoe1968 commentedon Aug 25, 2026
Proposed patch:
traderjoe1968 commentedon Aug 25, 2026
Updated proposed patch after identifying the additional false-positive from
preprocessor_config.json:solderzzc commentedon Aug 25, 2026
Thanks for the excellent root-cause writeup — exact same ambiguity class as #152's gemma4 fix, and your proposed fix is what's applied. PR up here: #157, watching CI now.
solderzzc commentedon Aug 25, 2026
Merged: SwiftLM#157. All 14 CI jobs green, including speculative-decoding — confirmed this doesn't interact with the earlier gemma4/qwen3_5 auto-detect guard from #152. Thanks again for the thorough diagnosis and fix proposal.