← MIC coverage of Transformers model types

microsoft/layoutlm-base-uncased

huggingface-mic/layoutlm-base-uncased-mic@7aa363dd7f97 ← microsoft/layoutlm-base-uncased@30e3cdd39c11 · LayoutLMForMaskedLM · random weights

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

Original113.3Mparameters
Fixture2.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.

layoutlm.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ 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
layoutlm.encoder.layer85.1M75.1%66.9K2.8%
layoutlm.embeddings27.0M23.8%2.2M95.5%
cls.predictions622.6K0.5%34.8K1.5%
layoutlm.pooler590.6K0.5%4.2K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelayoutlmlayoutlm✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear7515
Dropout377
LayerNorm266
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding77
Embeddings11
Encoder11
ForMaskedLM11
LMPredictionHead11
Model11
OnlyMLMHead11
Pooler11
PredictionHeadTransform11
ModuleList11
Tanh11

Config changes

4 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122