Transformers
Safetensors
English
llama4
llama4-text
llama4-moe
Mixture of Experts
mixture-of-experts
causal-lm
tinystories
tiny-model
validation
debug-model
Instructions to use shibatch/tinyllama4moe2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shibatch/tinyllama4moe2m with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shibatch/tinyllama4moe2m", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "Llama4ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_chunk_size": 128, | |
| "attention_dropout": 0.0, | |
| "attn_scale": 0.1, | |
| "attn_temperature_tuning": false, | |
| "bos_token_id": 0, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 1, | |
| "floor_scale": 8192, | |
| "head_dim": 24, | |
| "hidden_act": "silu", | |
| "hidden_size": 96, | |
| "initializer_range": 0.02, | |
| "interleave_moe_layer_step": 1, | |
| "intermediate_size": 192, | |
| "intermediate_size_mlp": 384, | |
| "layer_types": [ | |
| "chunked_attention", | |
| "full_attention", | |
| "chunked_attention", | |
| "full_attention", | |
| "chunked_attention" | |
| ], | |
| "max_position_embeddings": 1024, | |
| "model_type": "llama4_text", | |
| "moe_layers": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3, | |
| 4 | |
| ], | |
| "no_rope_layer_interval": 4, | |
| "no_rope_layers": [ | |
| 1, | |
| 0, | |
| 1, | |
| 0, | |
| 1 | |
| ], | |
| "num_attention_heads": 4, | |
| "num_experts_per_tok": 2, | |
| "num_hidden_layers": 5, | |
| "num_key_value_heads": 1, | |
| "num_local_experts": 4, | |
| "output_router_logits": false, | |
| "pad_token_id": 2, | |
| "rms_norm_eps": 1e-05, | |
| "rope_parameters": { | |
| "rope_theta": 500000.0, | |
| "rope_type": "default" | |
| }, | |
| "router_aux_loss_coef": 0.001, | |
| "router_jitter_noise": 0.0, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.9.0", | |
| "use_cache": true, | |
| "use_qk_norm": true, | |
| "vocab_size": 1024 | |
| } | |