Text Generation
Transformers
Safetensors
deepseek_v4
conversational
Eval Results
8-bit precision
fp8
Instructions to use deepseek-ai/DeepSeek-V4-Flash-0731 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V4-Flash-0731 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V4-Flash-0731") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Flash-0731") model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V4-Flash-0731", device_map="auto") - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V4-Flash-0731 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-V4-Flash-0731" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4-Flash-0731", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V4-Flash-0731
- SGLang
How to use deepseek-ai/DeepSeek-V4-Flash-0731 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "deepseek-ai/DeepSeek-V4-Flash-0731" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4-Flash-0731", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "deepseek-ai/DeepSeek-V4-Flash-0731" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4-Flash-0731", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V4-Flash-0731 with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V4-Flash-0731
Upload 2 files
#48 opened 6 minutes ago
by
Sean1089
Serving recipe: full 3x1M context on 2x NVIDIA DGX Spark (GB10), 3.39M-token KV pool, 653 Tok/s Peak Decode (list content @ c=16)
#47 opened about 8 hours ago
by
guycoble
PSA If you have terrible looping issues or random character generations try update your CUDA to 13.3
#46 opened about 21 hours ago
by
LukeC110
This model has many tool_call errors.
4
#45 opened 1 day ago
by
Gureumi
Here's how to run on SM120 / RTX 6000 Pro's (two of them) - not a troll/rickroll, I promise
❤️ 2
1
#44 opened 2 days ago
by
pooterton
Please add recipes and support for Blackwell (sm120) gpus
👍➕ 2
17
#43 opened 3 days ago
by
calper
Update README.md
1
#42 opened 3 days ago
by
chhuoymakara
If the actual form of v4-Flash is already strong as such F**K, then what's final version of v4-Pro and WHEN it will be released?
🚀 1
1
#41 opened 3 days ago
by
ArlenSmith
# 0731 KV cache per-token is ~8× larger than preview (56 vs 7.2 bytes/token) - is this expected?
👀 1
2
#40 opened 3 days ago
by
dfsafdsafxcvzxv
Reasoning loops
➕ 2
18
#39 opened 3 days ago
by
d3lavar
Add community evaluation results for DEEP-SWE
1
#38 opened 4 days ago
by
nielsr
Tool-calling instruction is not consistently followed
2
#37 opened 4 days ago
by
xuzhanxin
[Ktransformers official] add Ktransformers cookbook to model card for consumer hardware
#36 opened 4 days ago
by
yyj631
<3 to deepseek team....
❤️🤗 16
#34 opened 4 days ago
by
nonmairub
VISION VISION VISION
🚀🔥 11
4
#33 opened 5 days ago
by
celikburak
Running 0731 on a single DGX Spark (GB10, 128GB) - working vLLM config, 256K context
🤗👍 5
5
#32 opened 5 days ago
by
wiklif
Wen yah
1
#31 opened 5 days ago
by
opsiryotzu
Update README.md
#30 opened 5 days ago
by
TayfunDemirtas
Model returned random math problem when given nothing
2
#29 opened 5 days ago
by
xcx0902
[HF Staff] This tag is required to enable inference providers, please merge!
👍 5
#28 opened 6 days ago
by
nielsr
ds4
🚀🤗 5
#27 opened 6 days ago
by
AISkywalker
Add missing chat_template.jinja
➕ 1
1
#26 opened 6 days ago
by
getprasannav
梁圣牛逼; deepseek is supercalifragilisticexpialidocious
🚀 2
1
#25 opened 6 days ago
by
xiejl
震惊瘫坐,仿佛看到了原子弹爆炸!
🔥 1
1
#24 opened 6 days ago
by
wqshmzh
GigaSeek
🤯😎 18
2
#23 opened 6 days ago
by
6cf
How can it be served with 4 x RTX Pro6000?
👀 1
15
#22 opened 6 days ago
by
niuchuang
Preserve reasoning
#21 opened 6 days ago
by
firefox413
Publish a blog or paper on how the improvements were achieved.
👀 3
5
#18 opened 7 days ago
by
cinnybun02
DGX Spark deploy
❤️👍 4
10
#17 opened 7 days ago
by
bnenu
This should be named V4.1?
5
#16 opened 7 days ago
by
endolith
Are you saying I can deploy a top-tier T1 model with just a few thousand dollars' worth of Mac Studio?
🔥🤗 1
#15 opened 7 days ago
by
a1438998005
你的意思是我只需要一个几万人民币的mac studio就可以部署一个T1顶级模型吗?
😎 7
1
#14 opened 7 days ago
by
a1438998005
multimodal
🔥👍 6
6
#13 opened 7 days ago
by
MaziyarPanahi
梁圣牛批
#11 opened 7 days ago
by
YuShen011223
GOAT
🔥❤️ 6
#10 opened 7 days ago
by
xbruce22
梁圣牛批,国模雄起!
🤗 11
#8 opened 7 days ago
by
Williamxie1989
You rock guys!
🚀🤗 39
#7 opened 7 days ago
by
kyrylo-gorbachov
Is dspark already included in these weights?
6
#6 opened 7 days ago
by
tarruda
Small Model
👀👍 21
7
#5 opened 7 days ago
by
Hitarth1
国产之光!
🔥🤗 3
#4 opened 7 days ago
by
Gczmy
梁圣牛批
🤗 1
#3 opened 7 days ago
by
kongDeQiang
Will you also publish the base model?
1
#2 opened 7 days ago
by
Behrens
Going completely mad
🚀🔥 45
11
#1 opened 7 days ago
by
xiezirock