← MIC coverage of Transformers model types

RecursiveSI/flint

huggingface-mic/flint-mic@0ef1e43061d0 ← RecursiveSI/flint@2a247be0c0ae · FlintForCausalLM · random weights

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

Original39.8Bparameters
Fixture19.4Mparameters
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 (19 literal values, 3 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 · 49
Fixture · 3
KindOriginalFixture
no Experts21✓ kept
Experts, SparseMoeBlock, TopKRouter472✓ 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.layers39.2B98.5%160.7K0.8%
lm_head307.5M0.8%9.6M49.6%
model.embed_tokens307.5M0.8%9.6M49.6%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-6 of 256 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeflintflint✓ kept
modelvocab_size150144150144✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

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

ClassOriginalFixture
Linear34422
RMSNorm19713
SiLUActivation965
Attention493
DecoderLayer493
MLP493
Experts472
SparseMoeBlock472
TopKRouter472
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

12 fields changed, 31 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size204864
intermediate_size6144128
layer_types49 entries: 35× sliding_attention, 14× full_attention["full_attention", "sliding_attention", "full_attention"]
mlp_only_layers[0, 1][0]
moe_intermediate_size51232
num_attention_heads324
num_experts2564
num_experts_per_tok62
num_hidden_layers493
num_key_value_heads42
shared_expert_intermediate_size1024128