Update README and integration test for Qwen2-7B-Instruct#49
Open
sdeeptan-aws wants to merge 2 commits intoaws-neuron:mainfrom
Open
Update README and integration test for Qwen2-7B-Instruct#49sdeeptan-aws wants to merge 2 commits intoaws-neuron:mainfrom
sdeeptan-aws wants to merge 2 commits intoaws-neuron:mainfrom
Conversation
aws-yishanm
reviewed
Feb 20, 2026
aws-yishanm
left a comment
There was a problem hiding this comment.
Approved because Readme and test were present.
aws-yishanm
approved these changes
Feb 20, 2026
petesraj-aws
approved these changes
Feb 23, 2026
rgrandhiamzn
approved these changes
Feb 26, 2026
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
Updated Qwen2-7B-Instruct contrib model README and integration test. The modeling code is unchanged — Qwen2 is architecturally close to LLaMA (reuses
NeuronLlamaMLP, standard RoPE, pre-norm decoder layers) with QKV bias enabled and tied embeddings. Validation achieves 100% token match.Model Information
Model Name: Qwen2-7B-Instruct
Model Architecture: Decoder-only transformer (28 layers, hidden_size=3584, GQA 28Q heads, QKV bias, tied embeddings)
Purpose: Text generation / instruction following
Checklist
Required Components
test/integration/test_model.py)src/)Optional Components
Folder Structure
Testing
Model was compiled and tested with TP=2, batch_size=1, seq_len=128, bfloat16.
Test Results:
Test Prompt:
"def fibonacci(n):"Compatibility
Tested with:
Additional Information
NeuronLlamaMLPdirectly. Standard RoPE, pre-norm decoder layers, SwiGLU activation.qkv_bias=True,o_bias=False— unlike LLaMA which has no bias on any attention projections.embed_tokens.weightcloned tolm_head.weightviaupdate_state_dict_for_tied_weights.Wqkvtensor whenneuron_config.fused_qkv=True.Related Issues
N/A
vLLM Integration
By submitting this PR, I confirm that: