Qwen/Qwen2-0.5B
Original494.0Mparameters
Fixture9.8Mparameters
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 · 24
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 24 | 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 | 357.9M | 72.4% | 74.2K | 0.8% |
| model.embed_tokens | 136.1M | 27.6% | 9.7M | 99.2% |
| model.norm | 896 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (14 heads, 2 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | qwen2 | qwen2 | ✓ kept |
| model | vocab_size | 151936 | 151936 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 131072 | 131072 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Qwen2 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 169 | 15 |
| RMSNorm | 49 | 5 |
| Attention | 24 | 2 |
| DecoderLayer | 24 | 2 |
| MLP | 24 | 2 |
| SiLUActivation | 24 | 2 |
| Embedding | 1 | 1 |
| ModuleList | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
Config changes
5 fields changed, 25 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 896 | 64 |
| intermediate_size | 4864 | 128 |
| layer_types | 24 entries: 24× full_attention | ["full_attention", "full_attention"] |
| num_attention_heads | 14 | 4 |
| num_hidden_layers | 24 | 2 |