← MIC coverage of Transformers model types

LiquidAI/LFM2-8B-A1B

huggingface-mic/LFM2-8B-A1B-mic@dd3180cc233f ← LiquidAI/LFM2-8B-A1B@c1c44ff9fc00 · Lfm2MoeForCausalLM · random weights

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

Original8.3Bparameters
Fixture4.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 · 24
Fixture · 4
KindOriginalFixture
conv, Conv1d, MLP …22✓ kept
is_causal=True, Attention, Experts …61✓ kept
conv, Conv1d, Experts …161✓ 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.layers8.2B98.4%161.4K3.7%
model.embed_tokens134.2M1.6%4.2M96.3%
model.embedding_norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-4 of 32 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typelfm2_moelfm2_moe✓ kept
modelvocab_size6553665536✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings128000128000✓ kept

Module classes

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

ClassOriginalFixture
Linear6717
RMSNorm6111
DecoderLayer244
Experts222
SparseMoeBlock222
TopKRouter222
Conv1d183
ShortConv183
Attention61
MLP22
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

9 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size7168128
layer_types24 entries: 18× conv, 6× full_attention["conv", "conv", "full_attention", "conv"]
moe_intermediate_size179232
num_attention_heads324
num_experts324
num_experts_per_tok42
num_hidden_layers244
num_key_value_heads82