← MIC coverage of Transformers model types

EleutherAI/gpt-j-6b

huggingface-mic/gpt-j-6b-mic@870f261d7590 ← EleutherAI/gpt-j-6b@47e169305d2e · GPTJForCausalLM · random weights

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

Original6.1Bparameters
Fixture6.6Mparameters
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 (22 literal values, 22 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.

transformer.h

Original · 28
Fixture · 2
KindOriginalFixture
Block282✓ 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.h5.6B93.2%99.2K1.5%
lm_head206.5M3.4%3.3M49.6%
transformer.wte206.4M3.4%3.2M48.9%
transformer.ln_f8.2K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegptjgptj✓ kept
modelvocab_size5040050400✓ kept
modeltie_word_embeddingsFalseFalse✓ kept

Module classes

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

ClassOriginalFixture
Linear16913
Dropout857
LayerNorm293
Attention282
Block282
MLP282
NewGELUActivation282
Embedding11
ForCausalLM11
Model11
ModuleList11

Config changes

4 fields changed, 33 unchanged.

FieldOriginalFixture
n_embd409664
n_head164
n_layer282
rotary_dim644