Image-Text-to-Text
Transformers
Safetensors
deepseek_v41
text-generation
Eval Results
8-bit precision
fp8
Instructions to use deepseek-ai/DeepSeek-V4.1-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V4.1-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-V4.1-Flash")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V4.1-Flash", device_map="auto") - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V4.1-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.1-Flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V4.1-Flash
- SGLang
How to use deepseek-ai/DeepSeek-V4.1-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.1-Flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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.1-Flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V4.1-Flash with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V4.1-Flash
Update config.json
#40 opened about 17 hours ago
by
Fernanda24
V4.1-Flash: 33–50 agent turns for a one-field config edit (verification with no stopping criterion)
#39 opened 1 day ago
by
jiokasd3323
Reading DeepSeek V4.1 Flash's config.json: Where Sparse Attention Lives
🚀❤️ 1
#38 opened 1 day ago
by
laxmimerit
Runs on one RTX 5090 (31.8 GiB) + 125.7 GiB RAM via a llama.cpp fork: GGUF, report and numbers
🔥 1
#37 opened 1 day ago
by
JigSawPT
"Le Cerveau dans un Bocal de Morve: DeepSeek-V4.1-Flash or the Art of Selling a 4B Invalid as a Frontier Thinker" 🧠💧🧪
❤️ 1
#36 opened 1 day ago
by
Qozimo
Tested on coding and agentic work - not that impressive
#35 opened 1 day ago
by
curiousily
Instantly parse Hugging Face & ModelScope safetensors metadata without downloading weights. View tensor shapes, dtypes, and run side-by-side model diffs.
🔥 1
#33 opened 1 day ago
by
alone-wl
smaller model with engram?
🔥 2
12
#32 opened 2 days ago
by
ProCreations
More long-context evaluation results?
#31 opened 2 days ago
by
ArlenSmith
Hey DeepSeek, could you avoid using such confusing model IDs on the API platform?
4
#30 opened 2 days ago
by
RainPPR
Add community evaluation results
#29 opened 2 days ago
by
SaylorTwift
Running on 4x RTX PRO 6000 with NVMe offload for ngram
🚀 6
7
#28 opened 2 days ago
by
0xSero
Love to see the Harness Benchmark!!! TY!!!
👍 1
#26 opened 2 days ago
by
darkmatter2222
哇、DeepSeek!
🔥 1
1
#25 opened 2 days ago
by
NILKNARFGonzo
no way w deepseek
#24 opened 2 days ago
by
puihl481723
很强,参数量比上个版本翻倍,最强的flash模型,unsloth 早点出量化版本,赞美这些开源大模型
1
#22 opened 3 days ago
by
zmw911
感谢Deepseek
🤝 1
#21 opened 3 days ago
by
vayne1993
<a href=https://evil.com>hello</a>
#20 opened 3 days ago
by
tester9632587411
OpenAI and Claude don't make me download half a terabyte of weight just to ask a question smh
🧠🤯 27
7
#18 opened 3 days ago
by
Mikkkkoooo
Has the model's alignment with human ethics been strengthened compared to the previous generation?
5
#17 opened 3 days ago
by
likewendy
Bro....500多B的Flash,8卡H200已经上不了桌了吗[cry]
8
#16 opened 3 days ago
by
Saito-Karuha
Back to "attention is all you need"
🔥 1
#15 opened 3 days ago
by
shadowlilac
update README to add vLLM inference
🔥 1
#13 opened 3 days ago
by
riverclouds
Restore each indexer's K cache on incomplete compression steps
1
#12 opened 3 days ago
by
ZenAlexa
DeepSeek V4.1 Flash Lite
➕👍 34
14
#11 opened 3 days ago
by
KeinNiemand
为啥简单问题也强行输出小作文
🤯 1
3
#9 opened 3 days ago
by
qwq95195
Thanks for open-sourcing,感谢开源 DeepSeek V4.1 Flash
🚀🔥 17
1
#8 opened 3 days ago
by
lcc4567
Very impressive!
🧠 2
#7 opened 3 days ago
by
hgeist
Update README.md
#6 opened 3 days ago
by
zjxia
出来溜达一圈,等待社区反馈
#5 opened 3 days ago
by
JasonShane
梁圣!
🤗🚀 10
1
#4 opened 3 days ago
by
tom1ong
非常不错 感谢劳梁
🤗👍 19
#3 opened 3 days ago
by
zengzeng666
Thank you!
👍 19
#2 opened 3 days ago
by
KilincocomilK
liangsheng
🤗👍 80
2
#1 opened 3 days ago
by
TOURCMD