facebook/opt-125m
Original125.2Mparameters
Fixture38.9Mparameters
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.
model.decoder.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 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 |
|---|---|---|---|---|
| model.decoder.layers | 85.1M | 67.9% | 66.9K | 0.2% |
| model.decoder | 40.2M | 32.1% | 38.8M | 99.8% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | opt | opt | ✓ kept |
| model | vocab_size | 50272 | 50272 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | max_position_embeddings | 2048 | 2048 | ✓ kept |
Module classes
Instances of each class in the built model (prefix OPT omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 73 | 15 |
| LayerNorm | 25 | 5 |
| Attention | 12 | 2 |
| DecoderLayer | 12 | 2 |
| ReLU | 12 | 2 |
| Embedding | 1 | 1 |
| ModuleList | 1 | 1 |
| Decoder | 1 | 1 |
| ForCausalLM | 1 | 1 |
| LearnedPositionalEmbedding | 1 | 1 |
| Model | 1 | 1 |
Config changes
4 fields changed, 28 unchanged.
| Field | Original | Fixture |
|---|---|---|
| ffn_dim | 3072 | 128 |
| hidden_size | 768 | 64 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |