ai21labs/Jamba-tiny-dev
Original318.7Mparameters
Fixture8.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 · 16
Fixture · 5
| Kind | Original | Fixture | |
|---|---|---|---|
| Conv1d, MLP, MambaDecoderLayer … | 6 | 2 | ✓ kept |
| Conv1d, Experts, MambaDecoderLayer … | 8 | 2 | ✓ kept |
| is_causal=True, Attention, AttentionDecoderLayer … | 2 | 1 | ✓ 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 | 251.6M | 78.9% | 443.3K | 5.0% |
| lm_head | 33.6M | 10.5% | 4.2M | 47.5% |
| model.embed_tokens | 33.6M | 10.5% | 4.2M | 47.5% |
| model.final_layernorm | 512 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (8 heads, 2 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | MoE routing | top-2 of 8 experts | top-2 of 4 experts | ✓ kept |
| model | model_type | jamba | jamba | ✓ kept |
| model | vocab_size | 65536 | 65536 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 262144 | 262144 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Jamba omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 89 | 30 |
| RMSNorm | 75 | 23 |
| SiLUActivation | 30 | 9 |
| Conv1d | 14 | 4 |
| MambaDecoderLayer | 14 | 4 |
| MambaMixer | 14 | 4 |
| Experts | 8 | 2 |
| MLP | 8 | 3 |
| SparseMoeBlock | 8 | 2 |
| TopKRouter | 8 | 2 |
| Attention | 2 | 1 |
| AttentionDecoderLayer | 2 | 1 |
| Embedding | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
5 fields changed, 39 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 512 | 64 |
| intermediate_size | 2048 | 128 |
| num_attention_heads | 8 | 4 |
| num_experts | 8 | 4 |
| num_hidden_layers | 16 | 5 |