[model] support Qwen3.5-397B-A17B#8058
Conversation
Summary of ChangesHello @Jintao-Huang, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the model bridging capabilities by introducing specific support for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for the qwen3_5_moe model by introducing specific handling for its MTP (Multi-Token Prediction) layers. The changes are well-contained within gpt_bridge.py and involve propagating an is_mtp_layer flag to differentiate behavior. The implementation is correct, and I have one suggestion to refactor a method for improved readability.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds support for the Qwen3.5 model series. The changes include updating documentation, registering the new model with its specific configurations, and adjusting the Megatron bridge for proper weight conversion. The implementation looks solid, and I've identified one important bug fix. Overall, the changes are well-integrated into the existing framework.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds support for the Qwen3.5-397B-A17B model. The changes include updating documentation, refactoring argument initialization, and adding model-specific logic for weight conversion, especially for MoE and MTP layers. The implementation looks mostly correct, but I've identified a potential regression in swift/megatron/model/gpt_bridge.py that might affect the existing qwen3_vl_moe model. Please see my specific comment on that file.
| 'glm4_moe_lite', 'glm4v_moe', 'minimax_m2', 'olmoe', 'qwen3_next', 'kimi_vl', 'qwen3_omni_moe', | ||
| 'qwen3_vl_moe', 'qwen3_5_moe' | ||
| 'glm4_moe_lite', 'glm4v_moe', 'minimax_m2', 'olmoe', 'qwen3_next', 'kimi_vl', 'qwen3_omni_moe' | ||
| }: |
There was a problem hiding this comment.
The model type qwen3_vl_moe was removed from this set, which will change its behavior. Previously, _get_hf_grouped would return (False, False) for this model, but now it will fall through and return (None, None). This will affect the hf_grouped flag in _set_mlp_state. Was this change intentional? If not, qwen3_vl_moe should be added back to the set to maintain existing functionality.
'glm4_moe_lite', 'glm4v_moe', 'minimax_m2', 'olmoe', 'qwen3_next', 'kimi_vl', 'qwen3_omni_moe', 'qwen3_vl_moe'
No description provided.