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
Add Terminal-Bench evaluation results
#69 opened about 10 hours ago
by
SaylorTwift
vx大模型技术交流
#67 opened 2 days ago
by
baweikamisama
Community implementation: native DeepSeek-V4-Flash-0731 inference in pure C on CPU
#66 opened 2 days ago
by
shyringo
Grabage token looping issue
👍 1
#65 opened 5 days ago
by
LukeC110
Issue running this model
1
#64 opened 6 days ago
by
nandakishore071
Hermes-Agent and Silly Tavern speed Improvements by preventing context corruption
#62 opened 7 days ago
by
Testererer
why models output or use wrong absolute path.
#61 opened 7 days ago
by
xuguowong
Upload photo_2026-06-08_10-08-02.jpg
#60 opened 8 days ago
by
kasperskiyjon
Upload 1+.jpg
#59 opened 8 days ago
by
kasperskiyjon
Degenerate repetition at tool-call decision points in long agentic contexts (portable reproducer; 3 serving stacks incl. Ollama cloud 6/6)
1
#58 opened 8 days ago
by
rasatpetabit
We threw 256 prompt-injection attacks at DeepSeek-V4-Flash-0731. Many landed.
#56 opened 10 days ago
by
Lateos
DeepSeel-v4-flash-0731 thinking aborted by EOS
1
#55 opened 11 days ago
by
pangsg
Upload IMG_1628.jpeg
#54 opened 11 days ago
by
Reginaldo1979
Upload IMG_1628.jpeg
#53 opened 11 days ago
by
Reginaldo1979
Question for the DeepSeek team
👍 1
2
#52 opened 13 days ago
by
madeby561
vLLM + Ampere - DeepSeek V4 Flash 0731 working in a RTX3090 cluster
👍 3
#51 opened 14 days ago
by
DoktorMincs
The depth-5 corruption reports were a serving-stack bug, not this model — resolution, guidance, and a small model-card suggestion
1
#50 opened 14 days ago
by
hassellof
DeepSeek-V4-Flash-0731 在 4×A100 上部署:完整踩坑与工程复盘
👍 7
5
#49 opened 14 days ago
by
nudt-eddie
PSA If you have terrible looping issues or random character generations try update your CUDA to 13.3
#46 opened 15 days ago
by
LukeC110
This model has many tool_call errors.
5
#45 opened 16 days ago
by
Gureumi
Here's how to run on SM120 / RTX 6000 Pro's (two of them) - not a troll/rickroll, I promise
❤️ 2
6
#44 opened 16 days ago
by
pooterton
Please add recipes and support for Blackwell (sm120) gpus
➕👍 2
23
#43 opened 17 days ago
by
calper
Update README.md
1
#42 opened 17 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 17 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 17 days ago
by
dfsafdsafxcvzxv
Reasoning loops
➕ 3
22
#39 opened 18 days ago
by
d3lavar
Add community evaluation results for DEEP-SWE
1
#38 opened 19 days ago
by
nielsr
Tool-calling instruction is not consistently followed
2
#37 opened 19 days ago
by
xuzhanxin
[Ktransformers official] add Ktransformers cookbook to model card for consumer hardware
#36 opened 19 days ago
by
yyj631
<3 to deepseek team....
❤️🤗 17
#34 opened 19 days ago
by
nonmairub
VISION VISION VISION
🚀🔥 13
6
#33 opened 19 days ago
by
celikburak
Running 0731 on a single DGX Spark (GB10, 128GB) - working vLLM config, 256K context
🤗👍 6
8
#32 opened 20 days ago
by
wiklif
Wen yah
1
#31 opened 20 days ago
by
opsiryotzu
Update README.md
#30 opened 20 days ago
by
TayfunDemirtas
Model returned random math problem when given nothing
2
#29 opened 20 days ago
by
xcx0902
[HF Staff] This tag is required to enable inference providers, please merge!
👍 6
#28 opened 20 days ago
by
nielsr
ds4
❤️🤗 5
#27 opened 20 days ago
by
KakumuraArimura
Add missing chat_template.jinja
➕ 1
3
#26 opened 21 days ago
by
getprasannav
梁圣牛逼; deepseek is supercalifragilisticexpialidocious
🚀 2
1
#25 opened 21 days ago
by
xiejl
震惊瘫坐,仿佛看到了原子弹爆炸!
🔥 1
1
#24 opened 21 days ago
by
wqshmzh
GigaSeek
🤯😎 20
2
#23 opened 21 days ago
by
6cf
How can it be served with 4 x RTX Pro6000?
👀 1
18
#22 opened 21 days ago
by
niuchuang
Preserve reasoning
#21 opened 21 days ago
by
firefox413
Publish a blog or paper on how the improvements were achieved.
👀 3
5
#18 opened 21 days ago
by
cinnybun02
DGX Spark deploy
❤️👍 5
10
#17 opened 21 days ago
by
bnenu
This should be named V4.1?
5
#16 opened 21 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 21 days ago
by
a1438998005
你的意思是我只需要一个几万人民币的mac studio就可以部署一个T1顶级模型吗?
😎 7
1
#14 opened 21 days ago
by
a1438998005
multimodal
🔥👍 6
8
#13 opened 21 days ago
by
MaziyarPanahi