Instructions to use deepseek-ai/DeepSeek-V4-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V4-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V4-Flash") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("deepseek-ai/DeepSeek-V4-Flash", dtype="auto") - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use deepseek-ai/DeepSeek-V4-Flash 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" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V4-Flash
- SGLang
How to use deepseek-ai/DeepSeek-V4-Flash 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V4-Flash with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V4-Flash
🚀 ms-swift Provides DeepSeek-V4 Fine-tuning Practice
#35 opened 5 days ago
by
study-hjt
DeepSeek Training Support
#34 opened 6 days ago
by
SuperXr
官方是否有兴趣帮忙改进完善一下Apple MLX框架的适配?
#33 opened 8 days ago
by
hehua2008
DeepSeek-V4帮我破了《真探3》的案子
❤️ 3
2
#32 opened 17 days ago
by
Mephisto1484
Add Claw-Eval evaluation results
#31 opened 21 days ago
by
SaylorTwift
use vLLM with 2 DGX Sparks , response broken
#29 opened 21 days ago
by
easonchow0419
Running models with vLLM on the RTX Pro 6000 - SM120
👀👍 2
11
#28 opened 22 days ago
by
liku2001
model anwser with <ds_safety>
#27 opened 27 days ago
by
rick-jiang
Claude 4.7 Reasoning into DeepSeek-V4-Flash for Open-Source Edge Intelligence
🚀 1
#26 opened 30 days ago
by
muneebkhanniazi
How to run deepseek on Ada GPUs?Mine is L20.
5
#25 opened about 1 month ago
by
XiaoZaiyi
How can I use this with llama.cpp?
➕ 2
7
#24 opened about 1 month ago
by
KeilahElla
Questions on MoE Hash Routing
#22 opened about 1 month ago
by
mattduerrmeier
120B model?
👍 3
2
#21 opened about 1 month ago
by
jacek2024
Run DeepSeek-V4-Flash on more hardware: FP8/BF16 adapted versions for 8 AI chips (ready to download)
👍 1
#20 opened about 1 month ago
by
Yonghua
[适配请求] 建议 API 兼容 OpenAI 新规范中的 developer 角色 (It is recommended that the API be compatible with the developer role in the new OpenAI specification
#19 opened about 1 month ago
by
xusu616
Update README.md to add SGLang deployment option
#18 opened about 1 month ago
by
zjxia
Is 158B or 284b params ?
6
#17 opened about 1 month ago
by
celsowm
Add chat template
🔥 4
6
#16 opened about 1 month ago
by
Rocketknight1
Unable to run on 2x RTX Pro 6000 (DEEP_GEMM problem)
➕ 9
17
#15 opened about 1 month ago
by
stev236
Local Installation Video and Testing - Step by Step
👍😔 4
#13 opened about 1 month ago
by
fahdmirzac
Too big to run locally.
🤯👍 11
19
#12 opened about 1 month ago
by
Dampfinchen
Add community evaluation results for GPQA, MMLU-PRO, SWE-BENCH_VERIFIED, HLE, TERMINAL-BENCH-2.0
1
#11 opened about 1 month ago
by
nielsr
May I ask if there is a deployment document?
2
#10 opened about 1 month ago
by
jerryliujiawei
Will there be a smaller model like Qwen3.5 122 or Nemotron 3 super
➕ 7
7
#9 opened about 1 month ago
by
mayankiit04
起立,立正!
🔥 7
3
#5 opened about 1 month ago
by
lizhooh
Sick
#3 opened about 1 month ago
by
Green-eyedDevil
support inference by sglang or vllm ?
3
#2 opened about 1 month ago
by
howtain
Here comes the big one
🤗🔥 8
#1 opened about 1 month ago
by
huggingfacess