Views
No views yet
| Parameter | Original | Tiny |
|---|---|---|
| num_hidden_layers | 78 | 6 |
| hidden_size | 6144 | 2048 |
| intermediate_size | 12288 | 4096 |
| num_attention_heads | 64 | 16 |
| num_key_value_heads | 64 | 16 |
| n_routed_experts | 256 | 8 |
| num_experts_per_tok | 8 | 2 |
| moe_intermediate_size | 2048 | 512 |
| kv_lora_rank | 512 | 128 |
| q_lora_rank | 2048 | 512 |
| v_head_dim | 256 | 128 |
| index_n_heads | 32 | 8 |
| index_head_dim | 128 | 64 |
| first_k_dense_replace | 3 | 2 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("inference-optimization/GLM-5.2-0.8B-A0.8B", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("inference-optimization/GLM-5.2-0.8B-A0.8B")
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]))Success: 1.0000379085540771 <= 10.0
Generating sample text:
According to all known laws of aviation, there is no way a bee should be able to fly.