Views
No views yet
| Parameter | Original | Tiny |
|---|---|---|
| num_hidden_layers | 61 | 8 |
| hidden_size | 7168 | 1024 |
| num_attention_heads | 128 | 8 |
| head_dim | 512 | 64 |
| q_lora_rank | 1536 | 256 |
| o_lora_rank | 1024 | 64 |
| o_groups | 16 | 2 |
| index_n_heads | 64 | 4 |
| index_head_dim | 128 | 32 |
| index_topk | 1024 | 64 |
| n_routed_experts | 384 | 16 |
| moe_intermediate_size | 3072 | 512 |
| sliding_window | 128 | 64 |
heavily_compressed_attention, compressed_sparse_attention) and both MLP types (hash_moe, moe) are preserved:[hca, hca, csa, hca, csa, hca, csa, hca][hash_moe, hash_moe, hash_moe, moe, moe, moe, moe, moe]model.safetensors) with 608 tensors. The checkpoint uses the original DeepSeek-V4-Pro naming convention (no model. prefix): layers.N.attn.wq_a.weight, embed.weight, head.weight, etc. Fully loadable with AutoModelForCausalLM.from_pretrained().1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("inference-optimization/DeepSeek-V4-Pro-0.5B-A0.37B", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("inference-optimization/DeepSeek-V4-Pro-0.5B-A0.37B")
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.from_pretrained()).model.safetensors with original layers.N.attn.wq_a.weight style names).num_nextn_predict_layers=1 (MTP) layer is preserved in the architecture.Success: 1.001 <= 10.0