← MIC coverage of Transformers model types

google/switch-base-8

huggingface-mic/switch-base-8-mic@de4a0b8ab69b ← google/switch-base-8@92fe2d22b024 · SwitchTransformersForConditionalGeneration · random weights

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

Original619.3Mparameters
Fixture2.3Mparameters
Layer stacks2compared
Findings2to review

⚠ To review

Model tester (advisory)

The model's own small test config in its ModelTester (23 literal values, 23 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.

encoder.block

Original · 12
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
Experts, SparseMLP, Top1Router61✓ kept
no Embedding50⚠ missing

decoder.block

Original · 12
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
Experts, SparseMLP, Top1Router61✓ kept
no Embedding50⚠ missing

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.block311.5M50.3%148.2K6.4%
encoder.block283.2M45.7%115.3K5.0%
shared24.7M4.0%2.1M88.6%
decoder.final_layer_norm7680.0%640.0%
encoder.final_layer_norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeswitch_transformersswitch_transformers✓ kept
modelvocab_size3212832128✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

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

ClassOriginalFixture
Linear37347
Dropout17022
ReLU10810
DenseActDense10810
LayerNorm6212
Attention366
ModuleList266
Block244
LayerFF244
LayerSelfAttention244
Experts122
LayerCrossAttention122
SparseMLP122
Top1Router122
Embedding55
Stack22
ForConditionalGeneration11

Config changes

7 fields changed, 42 unchanged.

FieldOriginalFixture
d_ff3072128
d_kv6416
d_model76864
num_decoder_layers122
num_experts84
num_heads124
num_layers122