feat: add Qwen3.5 Dense Model EAGLE3 training support#516
Open
36330 wants to merge 2 commits intosgl-project:mainfrom
Open
feat: add Qwen3.5 Dense Model EAGLE3 training support#51636330 wants to merge 2 commits intosgl-project:mainfrom
36330 wants to merge 2 commits intosgl-project:mainfrom
Conversation
- Add qwen3_5_eagle_patch.py: Monkey patch for SGLang's Qwen3.5 models - Captures aux_hidden_states from 3 layers (layer 2, mid, layer-3) - Supports both Qwen3_5ForCausalLM and Qwen3_5ForConditionalGeneration - Environment variable QWEN35_EAGLE3_ENABLE=1 to enable - Add qwen3.5-4b-eagle3.json: Draft model config for Qwen3.5-4B - Modify train_eagle3.py: Auto-apply patch on initialization - Modify eagle3_target_model.py: Auto-detect and patch Qwen3.5 models - Modify llama3_eagle.py: Handle 'default' RoPE scaling type for Qwen3.5 Tested: - Hidden states generation: ✓ - Training with TTT: ✓ - Qwen3.5-4B Dense model: ✓
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Author
Collaborator
|
We have implemented the qwen3.5 eagle3 training in PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add qwen3_5_eagle_patch.py: Monkey patch for SGLang's Qwen3.5 models
Add qwen3.5-4b-eagle3.json: Draft model config for Qwen3.5-4B
Modify train_eagle3.py: Auto-apply patch on initialization
Modify eagle3_target_model.py: Auto-detect and patch Qwen3.5 models
Modify llama3_eagle.py: Handle 'default' RoPE scaling type for Qwen3.5
Tested:
example