← MIC coverage of Transformers model types

ibm-granite/granite-4.0-h-350m

huggingface-mic/granite-4.0-h-350m-mic@e7a671eb23a8 ← ibm-granite/granite-4.0-h-350m@3b17b717b8f2 · GraniteMoeHybridForCausalLM · random weights

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

Original340.3Mparameters
Fixture6.5Mparameters
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 (2 literal values, 2 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 · 32
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, MambaLayer …281✓ kept
is_causal=True, Attention41✓ 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.layers263.3M77.4%89.8K1.4%
model.embed_tokens77.1M22.6%6.4M98.6%
model.norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (12 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegranitemoehybridgranitemoehybrid✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

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

ClassOriginalFixture
Linear13711
RMSNorm655
SiLUActivation603
DecoderLayer322
MLP322
Conv1d281
MambaLayer281
RMSNormGated281
Attention41
Embedding11
ForCausalLM11
Model11
ModuleList11

Config changes

11 fields changed, 39 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size2048128
layer_types32 entries: 28× linear_attention, 4× full_attention["linear_attention", "full_attention"]
mamba_chunk_size2568
mamba_d_head3216
mamba_d_state12816
mamba_n_heads488
num_attention_heads124
num_hidden_layers322
num_key_value_heads42
shared_intermediate_size2048128