Repository navigation
qwen 3.5 export fixes - #5992
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for saving Qwen 3.5 VLM models by remapping state dict keys to match Hugging Face checkpoint namespaces, and adds unit tests to verify this behavior. The review feedback suggests expanding the model detection logic to include standard _vl suffix patterns for better compatibility, and adding a defensive check to handle None values for state_dict to prevent potential AttributeError crashes.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Fixes: #5845
Ref: https://github.com/huggingface/transformers/blob/9dff7ca5c9693f4c02cdd2a9c2abc4772fcea5da/src/transformers/models/qwen3_5/modeling_qwen3_5.py#L1308-L1319