← MIC coverage of Transformers model types

deepseek-ai/DeepSeek-V4-Flash-0731

huggingface-mic/DeepSeek-V4-Flash-0731-mic@7c36fb38ddaf ← deepseek-ai/DeepSeek-V4-Flash-0731@7872f01b1d1f · DeepseekV4ForCausalLM · random weights

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

Original284.3Bparameters
Fixture20.1Mparameters
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 · 43
Fixture · 5
KindOriginalFixture
sliding_attention, HashRouter22✓ kept
compressed_sparse_attention, CSACompressor, HashRouter …11✓ kept
heavily_compressed_attention, HCACompressor, RotaryEmbedding …201✓ kept
compressed_sparse_attention, CSACompressor, Indexer …201✓ 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.layers283.3B99.6%3.5M17.6%
lm_head529.5M0.2%8.3M41.2%
model.embed_tokens529.5M0.2%8.3M41.2%
model.hc_head65.5K0.0%1.0K0.0%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (64 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelMoE routingtop-6 of 256 expertstop-2 of 4 experts✓ kept
modelmodel_typedeepseek_v4deepseek_v4✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings10485761048576✓ kept
modelrope_theta1000010000✓ kept

Module classes

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

ClassOriginalFixture
Linear46850
RMSNorm23526
UnweightedRMSNorm13016
HyperConnection8610
SiLUActivation8610
RotaryEmbedding636
Attention435
DecoderLayer435
Experts435
GroupedLinear435
MLP435
SparseMoeBlock435
SqrtSoftplusActivation435
TopKRouter402
CSACompressor212
Indexer212
IndexerScorer212
HCACompressor201
HashRouter33
ForCausalLM11
HyperHead11
Model11
Embedding11
ModuleList11

Config changes

12 fields changed, 52 unchanged.

FieldOriginalFixture
head_dim51216
hidden_size409664
layer_types43 entries: 21× compressed_sparse_attention, 20× heavily_compressed_attention, 2× sliding_attention["sliding_attention", "sliding_attention", "compressed_sparse_attention", "he…
mlp_layer_types43 entries: 40× moe, 3× hash_moe["hash_moe", "hash_moe", "hash_moe", "moe", "moe"]
moe_intermediate_size204832
n_routed_experts2564
num_attention_heads644
num_experts_per_tok62
num_hidden_layers435
q_lora_rank102416
qk_rope_head_dim642
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "scale…—