Image-Text-to-Text
Transformers
Safetensors
deepseek_v41
text-generation
conversational
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") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # 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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - 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
Upload 103_127103_Admit Card.pdf
#71 opened 7 days ago
by
Nayemur850
Running DeepSeek V4.1 Flash on a single DGX Spark: 113.6 GB base + 40 MB domain sidecars, multi-domain metrics
#70 opened 10 days ago
by
wenzhouwu
annoying "Editing/regeneration too frequently. Try again later" issue!!
#69 opened 10 days ago
by
bluetitan9936
Fix act_quant returning wrong values on prefill with tilelang 0.1.8
#67 opened 12 days ago
by
FakerVSdonk
Create alex
#66 opened 12 days ago
by
alexalley
I pay my respects to Sect Leader DeepSeek.
#64 opened 18 days ago
by
nonmairub
Engram weights for domain specialization?
#63 opened 19 days ago
by
AlexAlex321
Upload ddff4901-d4e5-4370-83a1-33c1aeea7807.png
1
#62 opened 20 days ago
by
Amit420420420
Praise and critique for this model
➕ 2
5
#61 opened 20 days ago
by
mindplay
Create app.py
2
#60 opened 21 days ago
by
AbuYahya2
Formal verification of Engram/Conditional Memory — safety review request
#59 opened 23 days ago
by
laserbeans
Lowest-latency hosted provider for DeepSeek V4.1 Flash from Northern Virginia (US East)?
3
#57 opened 24 days ago
by
KekeJ
DeepSeek V4.1 Flash VRAM requirements check here: https://huggingface.co/spaces/yash-711/deepseek-v41-flash-fit
2
#56 opened 24 days ago
by
yash-711
upload 100%
1
#55 opened 24 days ago
by deleted
Upload 71 files
#54 opened 24 days ago
by deleted
Update encoding/test_encoding.py
1
#53 opened 24 days ago
by deleted
Streaming this from SSD: check whether your engine reads all 384 experts per layer
#52 opened 25 days ago
by
konstantinnikol
Will base model be released?
#51 opened 25 days ago
by
guiopen
Question about benchmark score (deepswe v1.1)
5
#50 opened 25 days ago
by
Ayuan0105
🚩 Report: Spam
#49 opened 26 days ago
by
tester9632587411
Update README.md
#48 opened 26 days ago
by
Arenita24
DeepSeek V4.1 Flash manages agent memory 10× less efficiently than V4 Flash (Hermes, MarathonMemBench)
❤️ 1
3
#46 opened 26 days ago
by
ovsale
Add ExtractBench evaluation results
#45 opened 26 days ago
by
boyang-runllama
Add ParseBench evaluation results
#44 opened 26 days ago
by
boyang-runllama
Successful DeepSeek-V4.1-Flash deployment on 4× A100 80GB using shi3z/deepseekv4.1-A100-custom — memory usage, load time and comparison with vLLM
👍 5
#43 opened 27 days ago
by
marcinmisiaszek
Native Transformers text-backbone support proposal (#48721)
6
#42 opened 27 days ago
by
malaiwah
Independent CPU decode/prefill regression evidence for the index_k fix in PR #12
❤️ 1
#41 opened 27 days ago
by
malaiwah
Update config.json
#40 opened 29 days ago
by
Fernanda24
V4.1-Flash: 33–50 agent turns for a one-field config edit (verification with no stopping criterion)
2
#39 opened 29 days ago
by
jiokasd3323
Reading DeepSeek V4.1 Flash's config.json: Where Sparse Attention Lives
🚀❤️ 1
#38 opened 29 days ago
by
laxmimerit
Runs on one RTX 5090 (31.8 GiB) + 125.7 GiB RAM via a llama.cpp fork: GGUF, report and numbers
🔥 5
4
#37 opened 29 days 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" 🧠💧🧪
❤️ 4
5
#36 opened 29 days ago
by
Qozimo
Tested on coding and agentic work - not that impressive
#35 opened 29 days 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 30 days ago
by
alone-wl
smaller model with engram?
🔥 3
12
#32 opened 30 days ago
by
ProCreations
More long-context evaluation results?
#31 opened about 1 month ago
by
ArlenSmith
Hey DeepSeek, could you avoid using such confusing model IDs on the API platform?
4
#30 opened about 1 month ago
by
RainPPR
Add community evaluation results
#29 opened about 1 month ago
by
SaylorTwift
Running on 4x RTX PRO 6000 with NVMe offload for ngram
🚀 7
8
#28 opened about 1 month ago
by
0xSero
Love to see the Harness Benchmark!!! TY!!!
👍 1
#26 opened about 1 month ago
by
darkmatter2222
哇、DeepSeek!
🔥 1
1
#25 opened about 1 month ago
by
NILKNARFGonzo
no way w deepseek
#24 opened about 1 month ago
by
puihl481723
很强,参数量比上个版本翻倍,最强的flash模型,unsloth 早点出量化版本,赞美这些开源大模型
1
#22 opened about 1 month ago
by
zmw911
感谢Deepseek
🤝 1
#21 opened about 1 month ago
by
vayne1993
<a href=https://evil.com>hello</a>
#20 opened about 1 month ago
by
tester9632587411
OpenAI and Claude don't make me download half a terabyte of weight just to ask a question smh
🧠🤯 33
9
#18 opened about 1 month ago
by
Mikkkkoooo
Has the model's alignment with human ethics been strengthened compared to the previous generation?
5
#17 opened about 1 month ago
by
likewendy
Bro....500多B的Flash,8卡H200已经上不了桌了吗[cry]
9
#16 opened about 1 month ago
by
Saito-Karuha