Conversation
…pport GPT-J requires two non-standard features: partial rotary embeddings (64/256 dims with interleaved rotation) and parallel residual connections. Validated at 98.91% teacher-forced token match against HF reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 EleutherAI/gpt-j-6b, a 6B-parameter decoder-only transformer. GPT-J uses parallel residual connections (attn + mlp + residual), partial RoPE (64/256 dims with interleaved rotation pattern), single LayerNorm per block, and GELU-new activation. Weight mapping handles the separate Q/K/V projection conversion.
Model Information
Model Name: GPT-J-6B
Model Architecture: Decoder-only transformer with parallel residual connections, partial RoPE (64/256 dims, GPT-J interleaved rotation), 16 MHA heads, 28 layers, LayerNorm, GELU-new
Purpose: General text generation
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:
Teacher-forced accuracy of 98.91% confirms per-token predictions are nearly identical to HF. Greedy divergences are from small floating-point differences snowballing during autoregressive generation.
Compatibility
Tested with:
Additional Information
attn(ln(x)) + mlp(ln(x)) + x.transformer.wte,transformer.h.{i}.attn.{q,k,v}_proj, etc.) are mapped to NXDI format (embed_tokens,layers.{i}.self_attn.qkv_proj, etc.) during weight conversion.Related Issues
N/A
vLLM Integration
By submitting this PR, I confirm that: