EleutherAI/pythia-160m
Original162.3Mparameters
Fixture6.5Mparameters
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.
gpt_neox.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Layer | 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 |
|---|---|---|---|---|
| gpt_neox.layers | 85.1M | 52.4% | 66.9K | 1.0% |
| gpt_neox.embed_in | 38.6M | 23.8% | 3.2M | 49.5% |
| lm_head | 38.6M | 23.8% | 3.2M | 49.5% |
| gpt_neox.final_layer_norm | 1.5K | 0.0% | 128 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | RoPE type | default | default | ✓ kept |
| model | model_type | gpt_neox | gpt_neox | ✓ kept |
| model | vocab_size | 50304 | 50304 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
| model | max_position_embeddings | 2048 | 2048 | ✓ kept |
Module classes
Instances of each class in the built model (prefix GPTNeoX omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 49 | 9 |
| Dropout | 25 | 5 |
| LayerNorm | 25 | 5 |
| GELUActivation | 12 | 2 |
| Attention | 12 | 2 |
| Layer | 12 | 2 |
| MLP | 12 | 2 |
| Embedding | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
4 fields changed, 26 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |