facebook/hubert-large-ls960-ft
Original315.5Mparameters
Fixture45.0Kparameters
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.
hubert.feature_extractor.conv_layers
Original · 7
Fixture · 7
| Kind | Original | Fixture | |
|---|---|---|---|
| LayerNormConvLayer | 7 | 7 | ✓ kept |
hubert.encoder.layers
Original · 24
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Linear | 24 | 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 |
|---|---|---|---|---|
| hubert.encoder.layers | 302.3M | 95.8% | 17.1K | 38.0% |
| hubert.encoder | 8.4M | 2.7% | 8.3K | 18.5% |
| hubert.feature_extractor.conv_layers | 4.2M | 1.3% | 17.4K | 38.6% |
| hubert.feature_projection | 526.3K | 0.2% | 1.1K | 2.5% |
| lm_head | 32.8K | 0.0% | 1.1K | 2.3% |
| hubert | 1.0K | 0.0% | 32 | 0.1% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | hubert | hubert | ✓ kept |
| model | vocab_size | 32 | 32 | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
Module classes
Instances of each class in the built model (prefix Hubert omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 146 | 14 |
| Dropout | 75 | 9 |
| LayerNorm | 57 | 13 |
| GELUActivation | 32 | 10 |
| Attention | 24 | 2 |
| EncoderLayerStableLayerNorm | 24 | 2 |
| FeedForward | 24 | 2 |
| Conv1d | 7 | 7 |
| LayerNormConvLayer | 7 | 7 |
| ModuleList | 2 | 2 |
| EncoderStableLayerNorm | 1 | 1 |
| FeatureEncoder | 1 | 1 |
| FeatureProjection | 1 | 1 |
| ForCTC | 1 | 1 |
| Model | 1 | 1 |
| PositionalConvEmbedding | 1 | 1 |
| SamePadLayer | 1 | 1 |
| ModuleDict | 1 | 1 |
| ParametrizationList | 1 | 1 |
| ParametrizedConv1d | 1 | 1 |
| _WeightNorm | 1 | 1 |
Config changes
7 fields changed, 46 unchanged.
| Field | Original | Fixture |
|---|---|---|
| conv_dim | 7 entries: 7× 512 | 7 entries: 7× 32 |
| hidden_size | 1024 | 32 |
| intermediate_size | 4096 | 64 |
| num_attention_heads | 16 | 4 |
| num_conv_pos_embedding_groups | 16 | 4 |
| num_conv_pos_embeddings | 128 | 32 |
| num_hidden_layers | 24 | 2 |