openai/whisper-tiny
Original37.8Mparameters
Fixture3.6Mparameters
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.
model.encoder.layers
Original · 4
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| EncoderLayer | 4 | 2 | ✓ kept |
model.decoder.layers
Original · 4
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 4 | 2 | ✓ 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
| Component | Original | Share | Fixture | Share |
|---|---|---|---|---|
| model.decoder | 20.1M | 53.2% | 3.3M | 92.0% |
| model.decoder.layers | 9.5M | 25.1% | 100.2K | 2.8% |
| model.encoder.layers | 7.1M | 18.8% | 66.8K | 1.8% |
| model.encoder | 1.1M | 2.9% | 123.9K | 3.4% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | whisper | whisper | ✓ kept |
| model | vocab_size | 51865 | 51865 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | num_mel_bins | 80 | 80 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Whisper omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 65 | 33 |
| LayerNorm | 22 | 12 |
| Attention | 12 | 6 |
| GELUActivation | 8 | 4 |
| DecoderLayer | 4 | 2 |
| EncoderLayer | 4 | 2 |
| Conv1d | 2 | 2 |
| Embedding | 2 | 2 |
| ModuleList | 2 | 2 |
| Decoder | 1 | 1 |
| Encoder | 1 | 1 |
| ForConditionalGeneration | 1 | 1 |
| Model | 1 | 1 |
| PositionalEmbedding | 1 | 1 |
Config changes
7 fields changed, 40 unchanged.
| Field | Original | Fixture |
|---|---|---|
| d_model | 384 | 64 |
| decoder_attention_heads | 6 | 4 |
| decoder_ffn_dim | 1536 | 128 |
| decoder_layers | 4 | 2 |
| encoder_attention_heads | 6 | 4 |
| encoder_ffn_dim | 1536 | 128 |
| encoder_layers | 4 | 2 |