← MIC coverage of Transformers model types

google/canine-c

huggingface-mic/canine-c-mic@74effe682167 ← google/canine-c@dc0eaffdff3f · CanineModel · random weights

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

Original132.1Mparameters
Fixture2.3Mparameters
Layer stacks3compared
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.

initial_char_encoder.layer

Original · 1
Fixture · 1
KindOriginalFixture
Layer11✓ kept

encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

final_char_encoder.layer

Original · 1
Fixture · 1
KindOriginalFixture
Layer11✓ 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
encoder.layer85.1M64.4%66.9K2.9%
char_embeddings.char_position_embeddings12.6M9.5%1.0M45.9%
final_char_encoder.layer7.1M5.4%33.5K1.5%
initial_char_encoder.layer7.1M5.4%33.5K1.5%
projection.conv4.7M3.6%32.8K1.4%
chars_to_molecules.conv2.4M1.8%16.4K0.7%
char_embeddings.HashBucketCodepointEmbedder_51.6M1.2%131.1K5.7%
12 others11.6M8.8%923.1K40.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecaninecanine✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings1638416384✓ kept

Module classes

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

ClassOriginalFixture
Linear8525
Dropout4414
LayerNorm3111
GELUActivation166
Attention144
Intermediate144
Layer144
Output144
SelfAttention144
SelfOutput144
Embedding1010
Encoder33
ModuleList33
Conv1d22
Embeddings11
Model11
Pooler11
CharactersToMolecules11
ConvProjection11
Tanh11

Config changes

4 fields changed, 24 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122