← MIC coverage of Transformers model types

nvidia/canary-1b-v2

huggingface-mic/canary-1b-v2-mic@4351d5d5efe6 ← nvidia/canary-1b-v2@d455706339a6 · CanaryForConditionalGeneration · random weights

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

Original962.2Mparameters
Fixture1.7Mparameters
Layer stacks2compared
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 (20 literal values, 20 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.

model.encoder.layers

Original · 32
Fixture · 2
KindOriginalFixture
ParakeetEncoderBlock322✓ kept

model.decoder.layers

Original · 8
Fixture · 2
KindOriginalFixture
DecoderLayer82✓ 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
model.encoder.layers806.6M83.8%135.8K8.0%
model.decoder.layers134.4M14.0%100.5K5.9%
model.decoder16.8M1.7%1.0M61.6%
model.encoder4.3M0.5%401.5K23.6%
proj_out16.4K0.0%16.4K1.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecanarycanary✓ kept
modelvocab_size1638416384✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
encoder_configattention styleMHA (8 heads, 8 KV)MHA (4 heads, 4 KV)✓ kept
encoder_configmodel_typeparakeet_encoderparakeet_encoder✓ kept
encoder_confighidden_actsilusilu✓ kept
encoder_configmax_position_embeddings50005000✓ kept
encoder_confignum_mel_bins128128✓ kept
decoder_configattention styleMHA (8 heads, 8 KV)MHA (4 heads, 4 KV)✓ kept
decoder_configmodel_typecanary_decodercanary_decoder✓ kept
decoder_configvocab_size1638416384✓ kept
decoder_confighidden_actrelurelu✓ kept
decoder_configmax_position_embeddings10241024✓ kept

Module classes

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

ClassOriginalFixture
Linear37040
LayerNorm18618
Conv1d966
SiLUActivation966
ParakeetEncoderFeedForward644
BatchNorm1d322
ParakeetEncoderAttention322
ParakeetEncoderBlock322
ParakeetEncoderConvolutionModule322
ReLU115
CrossAttention82
DecoderLayer82
DecoderMLP82
SelfAttention82
Conv2d55
ModuleList33
Decoder11
ForConditionalGeneration11
Model11
PositionalEmbedding11
Embedding11
ParakeetEncoder11
ParakeetEncoderRelPositionalEncoding11
ParakeetEncoderSubsamplingConv2D11

Config changes

11 fields changed, 62 unchanged.

FieldOriginalFixture
decoder_config.head_dim12816
decoder_config.hidden_size102464
decoder_config.intermediate_size4096128
decoder_config.num_attention_heads84
decoder_config.num_hidden_layers82
decoder_config.num_key_value_heads84
encoder_config.hidden_size102464
encoder_config.intermediate_size4096128
encoder_config.num_attention_heads84
encoder_config.num_hidden_layers322
encoder_config.num_key_value_heads84