facebook/wav2vec2-base-960h
Original94.4Mparameters
Fixture4.3Mparameters
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.
wav2vec2.feature_extractor.conv_layers
Original · 7
Fixture · 7
| Kind | Original | Fixture | |
|---|---|---|---|
| GroupNorm, GroupNormConvLayer | 1 | 1 | ✓ kept |
| NoLayerNormConvLayer | 6 | 6 | ✓ kept |
wav2vec2.encoder.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| EncoderLayer | 12 | 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 |
|---|---|---|---|---|
| wav2vec2.encoder.layers | 85.1M | 90.1% | 66.9K | 1.5% |
| wav2vec2.encoder | 4.7M | 5.0% | 33.1K | 0.8% |
| wav2vec2.feature_extractor.conv_layers | 4.2M | 4.4% | 4.2M | 96.9% |
| wav2vec2.feature_projection | 395.0K | 0.4% | 33.9K | 0.8% |
| lm_head | 24.6K | 0.0% | 2.1K | 0.0% |
| wav2vec2 | 768 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | wav2vec2 | wav2vec2 | ✓ kept |
| model | vocab_size | 32 | 32 | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
Module classes
Instances of each class in the built model (prefix Wav2Vec2 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 74 | 14 |
| Dropout | 39 | 9 |
| LayerNorm | 26 | 6 |
| GELUActivation | 20 | 10 |
| Attention | 12 | 2 |
| EncoderLayer | 12 | 2 |
| FeedForward | 12 | 2 |
| Conv1d | 7 | 7 |
| NoLayerNormConvLayer | 6 | 6 |
| ModuleList | 2 | 2 |
| GroupNorm | 1 | 1 |
| ModuleDict | 1 | 1 |
| ParametrizationList | 1 | 1 |
| ParametrizedConv1d | 1 | 1 |
| Encoder | 1 | 1 |
| FeatureEncoder | 1 | 1 |
| FeatureProjection | 1 | 1 |
| ForCTC | 1 | 1 |
| GroupNormConvLayer | 1 | 1 |
| Model | 1 | 1 |
| PositionalConvEmbedding | 1 | 1 |
| SamePadLayer | 1 | 1 |
| _WeightNorm | 1 | 1 |
Config changes
4 fields changed, 64 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |