Contrib: Add Qwen3.5-27B with hybrid DeltaNet + GQA architecture#128
Open
jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
Open
Contrib: Add Qwen3.5-27B with hybrid DeltaNet + GQA architecture#128jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
Conversation
First NxDI implementation of a model using linear recurrent attention (DeltaNet) with custom NKI kernels for Neuron. Architecture: 27B dense, 64 layers [3 DeltaNet + 1 GQA] x 16, hidden_size=5120, SwiGLU MLP, partial RoPE, attention output gate. Includes: - Text decoder (modeling_qwen35.py) with DeltaNet state persistence - Vision encoder (modeling_qwen35_vision.py) for VL pipeline - VL pipeline (modeling_qwen35_vl.py) with CPU vision + Neuron text - 3 NKI kernels: recurrent (TKG), chunked, fused chunked (CTE) - 42 unit tests (config + weight conversion) - 8 integration tests (all passing on trn2.3xlarge, SDK 2.29) - Comprehensive README with benchmarks and usage examples Tested on trn2.3xlarge (TP=4, LNC=2, SDK 2.29, NKI 0.3.0): - TTFT: 576ms, TPOT: 53ms, throughput: 18.9 tok/s - HBM usage: 23.57/24 GB per NeuronCore pair - 50/50 tests pass (42 unit + 8 integration)
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.
Summary
Architecture
Key architectural features
norm(x) * (1 + weight)with selective +1 addition during weight conversionTest Results
Unit Tests (42/42 PASS, CPU only)
Integration Tests (8/8 PASS, trn2.3xlarge, TP=4, SDK 2.29)
Performance (trn2.3xlarge, TP=4, LNC=2, BF16, seq_len=128, bs=1)
Files (15 files, ~6600 lines)
Contrib-only
This PR only adds files under
contrib/models/Qwen3.5-27B/. No changes to NxDIsrc/.Checklist