Downloads · 30 days
856
59% of all-time downloads
inference-optimization/DeepSeek-V4-Pro-0.5B-A0.37B
DeepSeek-V4-Pro-0.5B-A0.37B is a text generation model from inference-optimization. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a tiny version of deepseek-ai/DeepSeek-V4-Pro created for testing and development.
Downloads · 30 days
856
59% of all-time downloads
All-time downloads
1.5K
Public
Parameters
490M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors997 MB · 99%
How the weights are stored.
BF16486M · 99%
From the Hugging Face model README
This is a tiny version of deepseek-ai/DeepSeek-V4-Pro created for testing and development.
The following parameters were reduced from the original model:
| 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 |
Both attention types (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]Single-file checkpoint (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().
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("inference-optimization/DeepSeek-V4-Pro-0.5B-A0.37B", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("inference-optimization/DeepSeek-V4-Pro-0.5B-A0.37B")
input_ids = tokenizer("According to all known laws", return_tensors="pt").input_ids.to(model.device)
output = model.generate(input_ids, max_new_tokens=20)
print(tokenizer.decode(output[0]))
This model was created using the llm-compressor 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