Open
Conversation
GLM-4-9B-0414 is architecturally distinct from the existing glm-4-9b-chat-hf (model_type=glm): it uses 4 RMSNorm layers per decoder block instead of 2, with post_self_attn_layernorm and post_mlp_layernorm. Validation results (tp=2, bs=1, seq_len=2048, bf16): - Teacher-forced accuracy: 98.44% - Greedy accuracy: 67.81% - Throughput: 2.4 tokens/sec Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
98.12% teacher-forced, 69.38% greedy (10 prompts, 32 tokens each). Document requirement to use Glm4NeuronConfig (fused_qkv=True) instead of base NeuronConfig to avoid KeyError during weight sharding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2ab9bdd to
bdaa3b9
Compare
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
Adds NeuronX port of GLM-4-9B-0414 (model_type=glm4) to the contrib models collection.
Model Information
Checklist
Folder Structure
Testing
Note: Uses custom
Glm4NeuronConfig(fused_qkv=True, attn_cls=NeuronGlm4Attention). This is a different model_type ("glm4") from glm-4-9b-chat-hf ("glm") with 4 RMSNorm layers per block instead of 2.Compatibility
🤖 Generated with Claude Code