Open
Conversation
…upport Salesforce CodeGen-350M-mono NeuronX port with GPT-J style partial rotary embeddings (32/64 dims) and fused QKV weight decomposition (mp_num=4, Q/V/K interleaved order). Validated at 100% greedy token match on 14/30 prompts (64 tokens each) and 97% teacher-forced match average. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e930983 to
4f13617
Compare
Use consistent CE/TG column table format across all contrib models. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
NeuronX Distributed Inference port of Salesforce/codegen-350M-mono, a 350M-parameter decoder-only transformer for code generation. CodeGen uses GPT-J-style architecture with partial RoPE (32/64 dims with interleaved rotation), parallel residual connections (attn + mlp + residual), and fused QKV with (Q, V, K) interleaved order requiring special weight decomposition.
Model Information
Model Name: CodeGen-350M-mono
Model Architecture: Decoder-only transformer (GPT-J variant) with partial RoPE, parallel residual connections, fused QKV, GELU-new activation, LayerNorm
Purpose: Code generation (monolingual Python)
Checklist
Required Components
test/integration/test_model.py)src/)Optional Components
Folder Structure
Testing
Model was compiled and tested with TP=1, batch_size=1, seq_len=128, bfloat16 on trn1.32xlarge.
Test Results:
Compatibility
Tested with:
Additional Information
qkv_projwithmp_num=4and (Q, V, K) interleaved order -- the weight converter handles this decomposition.Related Issues
N/A
vLLM Integration
By submitting this PR, I confirm that: