microsoft/wavlm-base-plus
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.
feature_extractor.conv_layers
Original · 7
Fixture · 7
| Kind | Original | Fixture | |
|---|---|---|---|
| GroupNorm, GroupNormConvLayer | 1 | 1 | ✓ kept |
| NoLayerNormConvLayer | 6 | 6 | ✓ kept |
encoder.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Embedding | 1 | 1 | ✓ kept |
| no Embedding | 11 | 1 | ✓ 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 |
|---|---|---|---|---|
| encoder.layers | 85.1M | 90.1% | 68.5K | 1.6% |
| encoder.pos_conv_embed | 4.7M | 5.0% | 33.0K | 0.8% |
| feature_extractor.conv_layers | 4.2M | 4.5% | 4.2M | 96.9% |
| feature_projection.projection | 394.0K | 0.4% | 32.8K | 0.8% |
| encoder.layer_norm | 1.5K | 0.0% | 128 | 0.0% |
| feature_projection.layer_norm | 1.0K | 0.0% | 1.0K | 0.0% |
| masked_spec_embed | 768 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | wavlm | wavlm | ✓ kept |
| model | vocab_size | 32 | 32 | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
Module classes
Instances of each class in the built model (prefix WavLM omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 85 | 15 |
| Dropout | 38 | 8 |
| LayerNorm | 26 | 6 |
| GELUActivation | 20 | 10 |
| Attention | 12 | 2 |
| EncoderLayer | 12 | 2 |
| FeedForward | 12 | 2 |
| Conv1d | 7 | 7 |
| NoLayerNormConvLayer | 6 | 6 |
| ModuleList | 2 | 2 |
| Embedding | 1 | 1 |
| GroupNorm | 1 | 1 |
| ModuleDict | 1 | 1 |
| ParametrizationList | 1 | 1 |
| ParametrizedConv1d | 1 | 1 |
| Encoder | 1 | 1 |
| FeatureEncoder | 1 | 1 |
| FeatureProjection | 1 | 1 |
| GroupNormConvLayer | 1 | 1 |
| Model | 1 | 1 |
| PositionalConvEmbedding | 1 | 1 |
| SamePadLayer | 1 | 1 |
| _WeightNorm | 1 | 1 |
Config changes
4 fields changed, 76 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |