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 Toolathlon-Verified evaluation result
#75 opened 11 days ago
by
SaylorTwift
Deepseek V4 Flash Lite Idea
#74 opened 12 days ago
by
Banaxi-Tech
Urgent matter requiring a meeting with the Grandmaster.
#73 opened 15 days ago
by
nonmairub
Sick model, deep sick! 😍
1
#72 opened 18 days ago
by
auf1r2
Speed benchmarking 2xSpark vs 2xRTX Pro 6000
3
#71 opened 18 days ago
by
whistlercapital
Can i run it?
4
#70 opened 19 days ago
by
CHTL85
Add Terminal-Bench evaluation results
#69 opened 22 days ago
by
SaylorTwift
vx大模型技术交流
#67 opened 23 days ago
by
baweikamisama
Community implementation: native DeepSeek-V4-Flash-0731 inference in pure C on CPU
#66 opened 24 days ago
by
shyringo
Grabage token looping issue
👍 1
#65 opened 27 days ago
by
LukeC110
Issue running this model
1
#64 opened 27 days ago
by
nandakishore071
Hermes-Agent and Silly Tavern speed Improvements by preventing context corruption
#62 opened 29 days ago
by
Testererer
why models output or use wrong absolute path.
#61 opened 29 days ago
by
xuguowong
Upload photo_2026-06-08_10-08-02.jpg
#60 opened 29 days ago
by
kasperskiyjon
Upload 1+.jpg
#59 opened 29 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
2
#58 opened 29 days ago
by
rasatpetabit
We threw 256 prompt-injection attacks at DeepSeek-V4-Flash-0731. Many landed.
#56 opened about 1 month ago
by
Lateos
DeepSeel-v4-flash-0731 thinking aborted by EOS
1
#55 opened about 1 month ago
by
pangsg
Question for the DeepSeek team
👍 1
2
#52 opened about 1 month ago
by
madeby561
vLLM + Ampere - DeepSeek V4 Flash 0731 working in a RTX3090 cluster
👍 3
#51 opened about 1 month 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 about 1 month ago
by
hassellof
DeepSeek-V4-Flash-0731 在 4×A100 上部署:完整踩坑与工程复盘
👍 8
6
#49 opened about 1 month ago
by
GardenKing
PSA If you have terrible looping issues or random character generations try update your CUDA to 13.3
1
#46 opened about 1 month ago
by
LukeC110
This model has many tool_call errors.
5
#45 opened about 1 month 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 about 1 month ago
by
pooterton
Please add recipes and support for Blackwell (sm120) gpus
👍➕ 2
23
#43 opened about 1 month ago
by
calper
Update README.md
1
#42 opened about 1 month 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 about 1 month 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 about 1 month ago
by
dfsafdsafxcvzxv
Reasoning loops
➕ 3
22
#39 opened about 1 month ago
by
d3lavar
Add community evaluation results for DEEP-SWE
1
#38 opened about 1 month ago
by
nielsr
Tool-calling instruction is not consistently followed
2
#37 opened about 1 month ago
by
xuzhanxin
[Ktransformers official] add Ktransformers cookbook to model card for consumer hardware
#36 opened about 1 month ago
by
yyj631
<3 to deepseek team....
❤️🤗 18
1
#34 opened about 1 month ago
by
nonmairub
VISION VISION VISION
🚀🔥 13
6
#33 opened about 1 month ago
by
celikburak
Running 0731 on a single DGX Spark (GB10, 128GB) - working vLLM config, 256K context
🤗👍 6
8
#32 opened about 1 month ago
by
wiklif
Update README.md
#30 opened about 1 month ago
by
TayfunDemirtas
Model returned random math problem when given nothing
2
#29 opened about 1 month ago
by
xcx0902
[HF Staff] This tag is required to enable inference providers, please merge!
👍 6
#28 opened about 1 month ago
by
nielsr
ds4
🚀🤗 5
#27 opened about 1 month ago
by
KakumuraArimura
Add missing chat_template.jinja
➕ 1
3
#26 opened about 1 month ago
by
getprasannav
梁圣牛逼; deepseek is supercalifragilisticexpialidocious
🚀 2
1
#25 opened about 1 month ago
by
xiejl
震惊瘫坐,仿佛看到了原子弹爆炸!
🔥 1
1
#24 opened about 1 month ago
by
wqshmzh
GigaSeek
🤯😎 21
2
#23 opened about 1 month ago
by
6cf
How can it be served with 4 x RTX Pro6000?
👀 1
18
#22 opened about 1 month ago
by
niuchuang
Preserve reasoning
#21 opened about 1 month ago
by
firefox413
Publish a blog or paper on how the improvements were achieved.
👀 3
5
#18 opened about 1 month ago
by
cinnybun02
DGX Spark deploy
❤️👍 5
10
#17 opened about 1 month ago
by
bnenu