← MIC coverage of Transformers model types

openai-community/gpt2

huggingface-mic/gpt2-mic@0168ed11cf4c ← openai-community/gpt2@607a30d783df · GPT2LMHeadModel · random weights · built before the shrink rule (no recorded recipe)

CI: passing now; 3 failed checks in 30 days · MIC failures dashboard

Original124.4Mparameters
Fixture3.4Mparameters
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.

transformer.h

Original · 12
Fixture · 2
KindOriginalFixture
GPT2Block122✓ 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
transformer.h85.1M68.3%100.0K3.0%
transformer.wte38.6M31.0%3.2M95.1%
transformer.wpe786.4K0.6%65.5K1.9%
transformer.ln_f1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegpt2gpt2✓ kept
modelvocab_size5025750257✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

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

ClassOriginalFixture
Conv1D488
Dropout377
LayerNorm255
GPT2Attention122
GPT2Block122
GPT2MLP122
NewGELUActivation122
Embedding22
Model11
GPT2Model11
Linear11
ModuleList11

Config changes

3 fields changed, 34 unchanged.

FieldOriginalFixture
n_embd76864
n_head124
n_layer122