Draft
Conversation
Port of openbmb/MiniCPM-MoE-8x2b (8 experts, top-2 routing, ~14B total params). Uses NXDI base classes (NeuronAttentionBase, NeuronBaseModel, NeuronBaseForCausalLM, initialize_moe_module). Key MiniCPM-specific features: embedding scaling (scale_emb=12), residual depth scaling (scale_depth=1.4), and GLU MLP with softmax router. Validated on trn1.32xlarge with tp_degree=2, seq_len=2048, bf16. Compilation passes. Inference-only validation passes with coherent greedy generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 prompts, 32 tokens each. Greedy 39.38%, teacher-forced 92.19%. Below 95% threshold - likely due to embedding/residual scaling amplifying bf16 rounding through MoE routing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Adds NeuronX port of OpenBMB MiniCPM-MoE-8x2B to the contrib models collection.
Model Information
Checklist
Folder Structure
Testing
Note: Teacher-forced accuracy is 92.19%. MiniCPM-MoE uses embedding/residual scaling which amplifies bf16 rounding differences through the MoE routing path.
Compatibility
🤖 Generated with Claude Code