Instructions to use deepseek-ai/DeepSeek-V4-Pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V4-Pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V4-Pro")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Pro") model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V4-Pro", device_map="auto") - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V4-Pro 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-Pro" # 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-Pro", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V4-Pro
- SGLang
How to use deepseek-ai/DeepSeek-V4-Pro 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-Pro" \ --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-Pro", "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-Pro" \ --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-Pro", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V4-Pro with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V4-Pro
即使引导早已破碎,也请您当上大语言模型之王。
🔥🤗 11
1
#105 opened 6 months ago
by
Centerful
前排合影!
#104 opened 6 months ago
by
taostronger
deepseek王者归来
#103 opened 6 months ago
by
fanalvin
让算了算北京新能源积分是多少,v4、gemini、豆包都沦陷了
1
#102 opened 6 months ago
by
famer058
I just came
#101 opened 6 months ago
by
cinnybun02
deepseek,为你骄傲
#99 opened 6 months ago
by
kanghongyun
Is Engram included in V4?
1
#98 opened 6 months ago
by
fcMpKYz6Avp5QK
所以我猜是混合精度加模型太大导致暂时还没有量化的模型出来
6
#96 opened 6 months ago
by
lzm1066258
Not able to run deepseek v4 pro using transformers in Google Collab
2
#95 opened 6 months ago
by
chandu8848
good job!!!
#94 opened 6 months ago
by
FightKK
Waiting for Distill 10B \ 35B \70B
2
#93 opened 6 months ago
by
JerryShi2077
坐等27B量化,坐等Jackrong大佬蒸馏Opus^_^
1
#92 opened 6 months ago
by
DeveAIer
合影来了
#91 opened 6 months ago
by
YANNICKsong
ds现在真的是拉完了,全面落后
🤯🧠 21
12
#90 opened 6 months ago
by
RealBar
终于等到你,v4合影
#86 opened 6 months ago
by
NoNameLeGo
对不起了GLM token plan,我将拥抱开源之源神
👍 10
1
#84 opened 6 months ago
by
Edison0916
恭喜DeepSeek国王陛下于今日抵达他忠实的抱抱脸
#82 opened 6 months ago
by
oldshun
敬你是条汉子没有4.30当天发
🤗 7
4
#81 opened 6 months ago
by
cjqpker
Its cost is too low
#80 opened 6 months ago
by
nbcool
WOW 1.6T Params
#78 opened 6 months ago
by
Xin-AIAspire
向 DS 致敬 (^^ゞ
#77 opened 6 months ago
by
zhao04
体验了会儿V4,我仿佛看到核弹炸在眼前然后从椅子上摔下来,瘫坐在地!
🔥 12
2
#74 opened 6 months ago
by
RyanDong
Base都开源了 太大方了 致敬
#73 opened 6 months ago
by
cloudyu
在此迎接开源的王
#72 opened 6 months ago
by
Maxwell-Horace
王振兴在此祝贺DeepSeek
#71 opened 6 months ago
by
wangzhenxing4
AI Agent 何时出现?
1
#70 opened 6 months ago
by
KakumuraArimura
make ds greate again
#69 opened 6 months ago
by
Daerbeida
DeepSeek威武,中国威武,终于等到你
#68 opened 6 months ago
by
BingoOKay
How to convert fp8 on Hopper?
1
#67 opened 6 months ago
by
whybeyoung
他妈的甘,我的苦日子终于到头了
😎 2
#66 opened 6 months ago
by
EugeLam
有人知道用的哪家的芯片吗?
4
#63 opened 6 months ago
by
KaneHan
就看哪家厂商的code plan能让我用上了
🔥 1
#61 opened 6 months ago
by
FevolQ
未来已来
#58 opened 6 months ago
by
baipengyan
牛逼!
#56 opened 6 months ago
by
HarrytheCreep