← MIC coverage of Transformers model types

patrickvonplaten/bert2bert-cnn_dailymail-fp16

huggingface-mic/bert2bert-cnn_dailymail-fp16-mic@4dc2839f1cfe ← patrickvonplaten/bert2bert-cnn_dailymail-fp16@51b5d5cac0fa · EncoderDecoderModel · random weights · built before the shrink rule (no recorded recipe)

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

Original247.4Mparameters
Fixture4.2Mparameters
Layer stacks2compared
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.

encoder.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ kept

decoder.bert.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ 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
decoder.bert.encoder.layer113.4M45.9%100.5K2.4%
encoder.encoder.layer85.1M34.4%66.9K1.6%
encoder.embeddings23.8M9.6%2.0M47.5%
decoder.bert23.8M9.6%2.0M47.5%
decoder.cls622.6K0.3%34.8K0.8%
encoder.pooler590.6K0.2%4.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeencoder-decoderencoder-decoder✓ kept
encodermodel_typebertbert✓ kept
encodervocab_size3052230522✓ kept
encodertie_word_embeddingsTrueTrue✓ kept
encoderhidden_actgelugelu✓ kept
encodermax_position_embeddings512512✓ kept
decodermodel_typebertbert✓ kept
decodervocab_size3052230522✓ kept
decodertie_word_embeddingsTrueTrue✓ kept
decoderhidden_actgelugelu✓ kept
decodermax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear19535
Dropout9818
LayerNorm6313
BertAttention366
BertSelfOutput366
GELUActivation255
BertIntermediate244
BertLayer244
BertOutput244
BertSelfAttention244
BertCrossAttention122
Embedding66
BertEmbeddings22
BertEncoder22
BertModel22
ModuleList22
BertLMHeadModel11
BertLMPredictionHead11
BertOnlyMLMHead11
BertPooler11
BertPredictionHeadTransform11
Model11
Tanh11

Config changes

9 fields changed, 79 unchanged.

FieldOriginalFixture
decoder.hidden_size76864
decoder.intermediate_size3072128
decoder.num_attention_heads124
decoder.num_hidden_layers122
encoder.hidden_size76864
encoder.intermediate_size3072128
encoder.num_attention_heads124
encoder.num_hidden_layers122
pad_token_idnull0