← MIC coverage of Transformers model types

deepseek-ai/DeepSeek-R1

huggingface-mic/DeepSeek-R1-mic@89eddb3d8f94 ← deepseek-ai/DeepSeek-R1@56d4cbbb4d29 · DeepseekV3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

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

Original671.0Bparameters
Fixture16.6Mparameters
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 · 61
Fixture · 2
KindOriginalFixture
no Experts31✓ kept
Experts, MoE, TopkRouter581✓ 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.layers669.2B99.7%76.4K0.5%
model.embed_tokens926.7M0.1%8.3M49.8%
lm_head926.7M0.1%8.3M49.8%
model.norm7.2K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (128 heads, 128 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typedeepseek_v3deepseek_v3✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings163840163840✓ kept

Module classes

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

ClassOriginalFixture
Linear48917
RMSNorm2459
SiLUActivation1193
Attention612
DecoderLayer612
MLP612
Experts581
MoE581
TopkRouter581
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

18 fields changed, 35 unchanged.

FieldOriginalFixture
first_k_dense_replace31
head_dim648
hidden_size716864
intermediate_size18432128
kv_lora_rank51216
moe_intermediate_size204832
n_group81
n_routed_experts2564
num_attention_heads1284
num_experts_per_tok82
num_hidden_layers612
num_key_value_heads1284
q_lora_rank153616
qk_nope_head_dim12816
qk_rope_head_dim648
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "weigh…—
topk_group41
v_head_dim12816