albert/albert-base-v2
Original11.2Mparameters
Fixture11.2Mparameters
Layer stacks1compared
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.
albert.encoder.albert_layer_groups
Original · 1
Fixture · 1
| Kind | Original | Fixture | |
|---|---|---|---|
| Layer | 1 | 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 |
|---|---|---|---|---|
| albert.encoder.albert_layer_groups | 7.1M | 63.2% | 7.1M | 63.2% |
| albert.embeddings | 3.9M | 34.8% | 3.9M | 34.8% |
| albert.encoder | 99.1K | 0.9% | 99.1K | 0.9% |
| predictions.dense | 98.4K | 0.9% | 98.4K | 0.9% |
| predictions | 30.0K | 0.3% | 30.0K | 0.3% |
| predictions.LayerNorm | 256 | 0.0% | 256 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | albert | albert | ✓ kept |
| model | vocab_size | 30000 | 30000 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | hidden_act | gelu_new | gelu_new | ✓ kept |
| model | max_position_embeddings | 512 | 512 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Albert omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 9 | 9 |
| Dropout | 4 | 4 |
| LayerNorm | 4 | 4 |
| Embedding | 3 | 3 |
| ModuleList | 2 | 2 |
| NewGELUActivation | 2 | 2 |
| Attention | 1 | 1 |
| Embeddings | 1 | 1 |
| ForMaskedLM | 1 | 1 |
| Layer | 1 | 1 |
| LayerGroup | 1 | 1 |
| MLMHead | 1 | 1 |
| Model | 1 | 1 |
| Transformer | 1 | 1 |
Config changes
0 fields changed, 33 unchanged.
| Field | Original | Fixture |
|---|