[contrib] Add Qwen3.5 4B and 9B hybrid DeltaNet contrib models#152
Open
m-deepankar-singh wants to merge 4 commits intoaws-neuron:mainfrom
Open
[contrib] Add Qwen3.5 4B and 9B hybrid DeltaNet contrib models#152m-deepankar-singh wants to merge 4 commits intoaws-neuron:mainfrom
m-deepankar-singh wants to merge 4 commits intoaws-neuron:mainfrom
Conversation
Adds Qwen3.5 dense hybrid DeltaNet/GQA contrib model variants for 4B and 9B, including NKI DeltaNet kernels, weight conversion tests, and Trainium integration tests. This builds on Jim Burtoft's Qwen3.5/Qwen3.6 contrib work in PR aws-neuron#141 and PR aws-neuron#140; his dummy-KV plus side-channel DeltaNet state pattern is the baseline used here.
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.
Description
Adds Qwen3.5-4B and Qwen3.5-9B contrib model implementations for the dense hybrid DeltaNet + GQA architecture. This builds on Jim Burtoft's Qwen3.5/Qwen3.6 hybrid DeltaNet contrib work and keeps the proven dummy-KV plus side-channel DeltaNet state pattern.
This PR is intentionally scoped to Qwen3.5-4B and Qwen3.5-9B only. Qwen3.5-2B and Qwen3.6-27B fixes will be handled in separate follow-up PRs based on Jim's PR 141/140 work.
Model Information
Model Name: Qwen3.5-4B and Qwen3.5-9B
Model Architecture: Dense decoder-only hybrid architecture: repeating 3 DeltaNet layers + 1 GQA softmax attention layer
Purpose: Text generation
Checklist
Required Components
test/integration/test_model.py)src/)Optional Components
test/unit/, including DeltaNet decay bounding coverage and hybrid cache manager coverage.Folder Structure
Testing
Tested on
trn2.48xlarge, SDK PyTorch 2.9 / NxDI inference environment, TP=4, BF16,seq_len=160.Qwen3.5-4B
45 passed9 passed83.2 ms68.1 tok/sQwen3.5-9B
44 passed9 passed88.1 ms49.6 tok/sCompatibility
Tested with:
trn2.48xlarge2.9.03.12.3Additional Information
Known limitations:
Follow-up work may cover Qwen3.5-2B, Qwen3.6-27B, full stable-solve propagation, hybrid cache hardening, and quantization support.
Related Issues
This PR builds on Jim Burtoft's Qwen3.5/Qwen3.6 hybrid DeltaNet contrib work.
vLLM Integration
By submitting this PR, I confirm that: