← MIC coverage of Transformers model types

facebook/seamless-m4t-v2-large

huggingface-mic/seamless-m4t-v2-large-mic@5a9b85832b6a ← facebook/seamless-m4t-v2-large@5f8cc790b19f · SeamlessM4Tv2Model · random weights

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

Original2.3Bparameters
Fixture59.0Mparameters
Layer stacks7compared
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 (48 literal values, 48 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.

text_encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
EncoderLayer242✓ kept

speech_encoder.encoder.layers

Original · 24
Fixture · 24
KindOriginalFixture
ConformerEncoderLayer2424✓ kept

speech_encoder.adapter.layers

Original · 1
Fixture · 1
KindOriginalFixture
ConformerAdapterLayer11✓ kept

text_decoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

t2u_model.model.encoder.layers

Original · 6
Fixture · 6
KindOriginalFixture
EncoderLayer66✓ kept

t2u_model.model.decoder.layers

Original · 6
Fixture · 6
KindOriginalFixture
TextToUnitDecoderLayer66✓ kept

vocoder.hifi_gan.resblocks

Original · 15
Fixture · 15
KindOriginalFixture
HifiGanResidualBlock1515✓ 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
text_decoder.layers604.5M26.2%100.5K0.2%
speech_encoder.encoder.layers580.3M25.1%26.1M44.3%
text_encoder.layers503.7M21.8%66.9K0.1%
shared262.2M11.4%16.4M27.8%
t2u_model.model.encoder.layers125.9M5.5%106.4K0.2%
t2u_model.model.decoder.layers113.3M4.9%446.2K0.8%
speech_encoder.adapter.layers46.2M2.0%676.8K1.1%
13 others73.0M3.2%15.1M25.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeseamless_m4t_v2seamless_m4t_v2✓ kept
modelvocab_size256102256102✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings40964096✓ kept
modelsampling_rate1600016000✓ kept

Module classes

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

ClassOriginalFixture
Linear649297
Dropout346214
LayerNorm302192
Conv1d182182
ReLU8822
Attention8418
SiLU7272
FeedForwardNetwork5410
ConformerFeedForward5050
ModuleList3838
Embedding3030
EncoderLayer308
GLU2525
ConformerSelfAttention2525
ConformerConvolutionModule2424
ConformerEncoderLayer2424
DecoderLayer242
HifiGanResidualBlock1515
TextToUnitDecoderLayer66
ConvTranspose1d55
SinusoidalPositionalEmbedding44
Encoder22
ScaledWordEmbedding22
VariancePredictor22
CodeHifiGan11
ConformerAdapter11
ConformerAdapterLayer11
ConformerEncoder11
ConformerFeatureProjection11
Decoder11
HifiGan11
Model11
SpeechEncoder11
TextToUnitDecoder11
TextToUnitForConditionalGeneration11
TextToUnitModel11

Config changes

13 fields changed, 71 unchanged.

FieldOriginalFixture
decoder_attention_heads164
decoder_ffn_dim8192128
decoder_layers242
encoder_attention_heads164
encoder_ffn_dim8192128
encoder_layers242
hidden_size102464
lang_embed_dim2566
spkr_embed_dim2566
t2u_decoder_ffn_dim81926
t2u_encoder_ffn_dim81926
t2u_variance_predictor_hidden_dim2564
unit_embed_dim128025