← MIC coverage of Transformers model types

deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct

huggingface-mic/DeepSeek-Coder-V2-Lite-Instruct-mic@90601ffd1320 ← deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct@e434a23f91ba · DeepseekV2ForCausalLM · random weights

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

Original15.7Bparameters
Fixture13.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

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

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 · 27
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, Moe, TopkRouter261✓ 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.layers15.3B97.3%89.6K0.7%
model.embed_tokens209.7M1.3%6.6M49.7%
lm_head209.7M1.3%6.6M49.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-6 of 64 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typedeepseek_v2deepseek_v2✓ kept
modelvocab_size102400102400✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings163840163840✓ kept

Module classes

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

ClassOriginalFixture
Linear19015
RMSNorm827
SiLUActivation533
Attention272
DecoderLayer272
MLP272
Experts261
Moe261
TopkRouter261
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

13 fields changed, 39 unchanged.

FieldOriginalFixture
head_dim648
hidden_size204864
intermediate_size10944128
kv_lora_rank51216
moe_intermediate_size140832
n_routed_experts644
num_attention_heads164
num_experts_per_tok62
num_hidden_layers272
num_key_value_heads164
qk_nope_head_dim12816
qk_rope_head_dim648
v_head_dim12816