bigcode/tiny_starcoder_py
Original164.1Mparameters
Fixture3.7Mparameters
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.
transformer.h
Original · 20
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Block | 20 | 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 |
|---|---|---|---|---|
| transformer.h | 120.1M | 73.2% | 54.5K | 1.5% |
| transformer.wte | 37.7M | 23.0% | 3.1M | 84.5% |
| transformer.wpe | 6.3M | 3.8% | 524.3K | 14.1% |
| transformer.ln_f | 1.5K | 0.0% | 128 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | gpt_bigcode | gpt_bigcode | ✓ kept |
| model | vocab_size | 49152 | 49152 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
Module classes
Instances of each class in the built model (prefix GPTBigCode omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 81 | 9 |
| Dropout | 41 | 5 |
| LayerNorm | 41 | 5 |
| GELUTanh | 20 | 2 |
| Attention | 20 | 2 |
| Block | 20 | 2 |
| MLP | 20 | 2 |
| Embedding | 2 | 2 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
5 fields changed, 38 unchanged.
| Field | Original | Fixture |
|---|---|---|
| n_embd | 768 | 64 |
| n_head | 12 | 4 |
| n_inner | 3072 | 128 |
| n_layer | 20 | 2 |
| num_key_value_heads | 1 | 2 |