← MIC coverage of Transformers model types

baidu/ERNIE-4.5-21B-A3B-PT

huggingface-mic/ERNIE-4.5-21B-A3B-PT-mic@81560ba9801f ← baidu/ERNIE-4.5-21B-A3B-PT@87db95487941 · Ernie4_5_MoeForCausalLM · random weights

CI: no failure on main in 30 days · MIC failures dashboard

Original21.8Bparameters
Fixture6.7Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Model tester (advisory)

The model's own small test config in its ModelTester (16 literal values, 0 set by the model's own tester, the rest generic base-tester defaults). Testers are usually representative but not always, so these notes are for review, not rules.

The fixture covers every per-layer kind the tester sets, and shrinks every size it does.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 28
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, SparseMoeBlock, Statics …271✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers21.6B98.8%86.5K1.3%
model.embed_tokens264.8M1.2%6.6M98.7%
model.norm2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (20 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeernie4_5_moeernie4_5_moe✓ kept
modelvocab_size103424103424✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Ernie4_5_Moe omitted).

ClassOriginalFixture
Linear19715
RMSNorm575
SiLUActivation553
Attention282
DecoderLayer282
MLP282
Experts271
SparseMoeBlock271
Statics271
TopKRouter271
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

8 fields changed, 29 unchanged.

FieldOriginalFixture
hidden_size256064
intermediate_size12288128
moe_intermediate_size153632
moe_k62
moe_num_experts644
num_attention_heads204
num_hidden_layers282
num_key_value_heads42