Views
No views yet
| Parameter | Original | Tiny |
|---|---|---|
| num_hidden_layers | 48 | 10 |
| num_local_experts | 128 | 16 |
| num_experts_per_tok | 8 | 8 |
| hidden_size | 2048 | 2048 |
| intermediate_size | 6144 | 6144 |
| moe_intermediate_size | 768 | 768 |
| num_attention_heads | 32 | 32 |
| num_key_value_heads | 4 | 4 |
model.safetensors file with individual expert weights matching the original Qwen3 structure. Each layer has 16 experts with separate gate_proj, up_proj, and down_proj weights per expert.Input: "According to all known laws"
Output: "According to all known laws of aviation, there is no way a bee should be able to fly."1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("inference-optimization/Qwen3-1.6B-A0.9B", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("inference-optimization/Qwen3-1.6B-A0.9B")
5
6input_ids = tokenizer("According to all known laws", return_tensors="pt").input_ids.to(model.device)
7output = model.generate(input_ids, max_new_tokens=20)
8print(tokenizer.decode(output[0]))create-tiny-model Claude skill:init_weights()