bigcode/starcoder2-3b
Original3.0Bparameters
Fixture3.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.
model.layers
Original · 30
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 30 | 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.layers | 2.9B | 95.0% | 58.6K | 1.8% |
| model.embed_tokens | 151.0M | 5.0% | 3.1M | 98.2% |
| model.norm | 6.1K | 0.0% | 128 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (24 heads, 2 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | starcoder2 | starcoder2 | ✓ kept |
| model | vocab_size | 49152 | 49152 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | hidden_act | gelu_pytorch_tanh | gelu_pytorch_tanh | ✓ kept |
| model | max_position_embeddings | 16384 | 16384 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Starcoder2 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 181 | 13 |
| LayerNorm | 61 | 5 |
| GELUTanh | 30 | 2 |
| Attention | 30 | 2 |
| DecoderLayer | 30 | 2 |
| MLP | 30 | 2 |
| Embedding | 1 | 1 |
| ModuleList | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
Config changes
4 fields changed, 28 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 3072 | 64 |
| intermediate_size | 12288 | 128 |
| num_attention_heads | 24 | 4 |
| num_hidden_layers | 30 | 2 |