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 community evaluation results for DEEP-SWE
#38 opened about 14 hours ago
by
nielsr
Tool-calling instruction is not consistently followed
1
#37 opened about 17 hours ago
by
xuzhanxin
add Ktransformers cookbook to model card for consumer hardware
#36 opened about 17 hours ago
by
yyj631
<3 to deepseek team....
🤗 6
#34 opened about 18 hours ago
by
nonmairub
VISION VISION VISION
🚀🔥 9
4
#33 opened 1 day ago
by
celikburak
Running 0731 on a single DGX Spark (GB10, 128GB) - working vLLM config, ~10 tok/s, 256K context
👍🤗 3
4
#32 opened 1 day ago
by
wiklif
Wen yah
#31 opened 1 day ago
by
opsiryotzu
Update README.md
#30 opened 2 days ago
by
TayfunDemirtas
Model returned random math problem when given nothing
2
#29 opened 2 days ago
by
xcx0902
[HF Staff] This tag is required to enable inference providers, please merge!
👍 5
#28 opened 2 days ago
by
nielsr
ds4
❤️🤗 4
#27 opened 2 days ago
by
AISkywalker
Add missing chat_template.jinja
➕ 1
1
#26 opened 2 days ago
by
getprasannav
梁圣牛逼; deepseek is supercalifragilisticexpialidocious
🚀 1
#25 opened 3 days ago
by
xiejl
震惊瘫坐,仿佛看到了原子弹爆炸!
1
#24 opened 3 days ago
by
wqshmzh
GigaSeek
🤯😎 16
2
#23 opened 3 days ago
by
6cf
How can it be served with 4 x RTX Pro6000?
6
#22 opened 3 days ago
by
niuchuang
Preserve reasoning
#21 opened 3 days ago
by
firefox413
Publish a blog or paper on how the improvements were achieved.
👀 3
5
#18 opened 3 days ago
by
cinnybun02
DGX Spark deploy
❤️👍 4
8
#17 opened 3 days ago
by
bnenu
This should be named V4.1?
5
#16 opened 3 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 3 days ago
by
a1438998005
你的意思是我只需要一个几万人民币的mac studio就可以部署一个T1顶级模型吗?
😎 6
1
#14 opened 3 days ago
by
a1438998005
multimodal
🔥👍 6
6
#13 opened 3 days ago
by
MaziyarPanahi
梁圣牛批
#11 opened 3 days ago
by
YuShen011223
GOAT
🔥❤️ 6
#10 opened 3 days ago
by
xbruce22
梁圣牛批,国模雄起!
🤗 11
#8 opened 3 days ago
by
Williamxie1989
You rock guys!
🚀🤗 39
#7 opened 3 days ago
by
kyrylo-gorbachov
Is dspark already included in these weights?
4
#6 opened 4 days ago
by
tarruda
Small Model
👀👍 20
7
#5 opened 4 days ago
by
Hitarth1
国产之光!
🔥🤗 3
#4 opened 4 days ago
by
Gczmy
梁圣牛批
🤗 1
#3 opened 4 days ago
by
kongDeQiang
Will you also publish the base model?
1
#2 opened 4 days ago
by
Behrens
Going completely mad
🚀🔥 44
11
#1 opened 4 days ago
by
xiezirock