← MIC coverage of Transformers model types

Salesforce/codegen2-16B_P

huggingface-mic/codegen2-16B_P-mic@1fea908e4ceb ← Salesforce/codegen2-16B_P@14bcc89999fe · CodeGenForCausalLM · random weights

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

Original16.0Bparameters
Fixture6.7Mparameters
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 · 34
Fixture · 2
KindOriginalFixture
Block342✓ 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.h15.4B96.1%99.2K1.5%
lm_head314.6M2.0%3.3M49.6%
transformer.wte314.6M2.0%3.3M48.9%
transformer.ln_f12.3K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecodegencodegen✓ kept
modelvocab_size5120051200✓ kept
modeltie_word_embeddingsFalseFalse✓ kept

Module classes

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

ClassOriginalFixture
Linear1379
Dropout1037
LayerNorm353
Attention342
Block342
MLP342
NewGELUActivation342
ForCausalLM11
Model11
Embedding11
ModuleList11

Config changes

4 fields changed, 33 unchanged.

FieldOriginalFixture
n_embd614464
n_head244
n_layer342
rotary_dim644