Contrib: Solar Open 100B (upstage/Solar-Open-100B) on Trainium2#107
Open
jimburtoft wants to merge 2 commits intoaws-neuron:mainfrom
Open
Contrib: Solar Open 100B (upstage/Solar-Open-100B) on Trainium2#107jimburtoft wants to merge 2 commits intoaws-neuron:mainfrom
jimburtoft wants to merge 2 commits intoaws-neuron:mainfrom
Conversation
NeuronX Distributed Inference implementation of upstage/Solar-Open-100B, a 102.6B MoE model (128 routed + 1 shared expert, top-8 sigmoid routing). - TP=64 on trn2.48xlarge, BF16 - Logit validation passes (check_accuracy_logits_v2, 16 tokens) - CTE: 341.7 ms, TKG: 10.2 ms (98 tok/s) - 5 architecture issues fixed during onboarding (hidden_act, weight format, YaRN RoPE, glu_type)
…G improvement) Enable fused_qkv, qkv_kernel_enabled, and qkv_nki_kernel_enabled for 84.5 tok/s TKG (up from 55.8 baseline). Update README with kernel benchmark results, seq_len/batch sweep tables, and revised performance metrics. Increase default seq_len from 128 to 4096. All 4 integration tests pass on trn2.48xlarge with the new config.
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.
Adds NeuronX Distributed Inference support for upstage/Solar-Open-100B, a 102.6B parameter Mixture-of-Experts model (128 routed + 1 shared expert per layer, top-8 sigmoid routing). The implementation includes custom weight loading for HuggingFace safetensors format, corrected YaRN RoPE, and optimized attention NKI kernel configuration delivering 34% TKG improvement over baseline.
Model Information
Model Name: Solar Open 100B
Model Architecture: Decoder-only MoE transformer (48 layers, 128+1 experts/layer, GQA 64Q/8KV, hidden_size=4096)
Purpose: Text generation (102.6B total params, 12B active per token)
Checklist
Required Components
test/integration/test_model.py)check_accuracy_logits_v2with multi-tiered tolerances (top-5/50/1000/all)src/)modeling_solar_open.py(1095 lines): Full inference implementation based on GPT-OSS/DeepSeek-V3 architectureglu_type="glu"not"swiglu")Optional Components
Folder Structure
Testing
How did you test this change?
Tested on trn2.48xlarge (us-east-2) with SDK 2.28 (torch-neuronx 2.9.0.2.12, NxDI 0.8.16251). All 4 tests pass with optimized kernel configuration (
fused_qkv=True,qkv_kernel_enabled=True,qkv_nki_kernel_enabled=True).Test Results:
Compatibility
Tested with:
Additional Information
Performance Highlights
Known Limitations
Issues Fixed During Onboarding (5 total)
hidden_actoverride: Config incorrectly defaulted to "sigmoid" instead of "silu"glu_typemismatch: Solar Open requires "glu" not "swiglu" (despite SiLU activation)Related Issues
N/A - New model contribution
vLLM Integration
By submitting this PR, I confirm that: