Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
fp8
Instructions to use deepseek-ai/DeepSeek-Prover-V2-671B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-Prover-V2-671B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-Prover-V2-671B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-Prover-V2-671B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-Prover-V2-671B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use deepseek-ai/DeepSeek-Prover-V2-671B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-Prover-V2-671B" # 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-Prover-V2-671B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-Prover-V2-671B
- SGLang
How to use deepseek-ai/DeepSeek-Prover-V2-671B 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-Prover-V2-671B" \ --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-Prover-V2-671B", "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-Prover-V2-671B" \ --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-Prover-V2-671B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-Prover-V2-671B with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-Prover-V2-671B
Fix chat_template crash when assistant message omits the `content` key
#60 opened 24 days ago
by
qgallouedec
add AIBOM
#59 opened 12 months ago
by
RiccardoDav
Upload IMG_20250512_214204_269.jpg
1
#58 opened about 1 year ago
by
Lovv66
good job ! R2 please...
#57 opened about 1 year ago
by
darwin2025
DeepSeek Model Bad Cases and User Reviews Prover V2 R1 R2
#55 opened about 1 year ago
by
DeepNLP
mac本地运行运行prover-v2对显卡有要求吗?
#54 opened about 1 year ago
by
guruboy123
Some problems were found during the initial experience -- is it hallucinations or probs caused by MoE
#53 opened about 1 year ago
by
Nigmat-Raghim
DeepSeek-Prover-V2-671B
#51 opened about 1 year ago
by
wnt890719
Gib Deepseek R2
1
#50 opened about 1 year ago
by
ayokings
DeepSeek 劳动节gift,速速加群!
2
#49 opened about 1 year ago
by
jimmyismagic
提示:这不是一个针对聊天和普通问题对齐的模型。Tips: This is not a model aligned for chat and general questions
👍 3
#48 opened about 1 year ago
by
Cran-May
Prover模型怎么用呢?看前两个月字节也发布了Prover模型
#47 opened about 1 year ago
by
Grayck
Not a thinking model?
#46 opened about 1 year ago
by
bhwangfy
每逢假期必更新,你说!你是不是开了空单。
❤️ 2
1
#45 opened about 1 year ago
by
jackz990
Create README.md
#44 opened about 1 year ago
by
hairystan
Any technical report?
#43 opened about 1 year ago
by
humzzy
DeepSeek V2 671B推理部署优化,各种卡性能分析,有兴趣的加微信群讨论!(禁止广告等商业活动)
2
#41 opened about 1 year ago
by
jakyer
show me your report pls
👀🤗 8
1
#40 opened about 1 year ago
by
bhwangfy
How do I talk to the model?? someone pls let me know
1
#39 opened about 1 year ago
by
x9768
什么许可证?
4
#38 opened about 1 year ago
by
justinmeans
有病吧,一到假期就发
👍🧠 20
3
#37 opened about 1 year ago
by
yunchong
can i use this for american math or is it chinese math only?
🧠 5
7
#33 opened about 1 year ago
by
enriquelopezcode
Create README.md
#31 opened about 1 year ago
by
Claire45
学术讨论群 不限于DeepSeek
🔥🤗 2
6
#30 opened about 1 year ago
by
Histone
DeepSeek-Prover-V2 vs Kimina-Prover Preview
❤️ 3
4
#29 opened about 1 year ago
by
evariste-liu
各位,端午快乐!
😔 1
7
#28 opened about 1 year ago
by
laiwenchang
Happy holiday!🤪
#27 opened about 1 year ago
by
ZhiQinC
I wanna my holiday...
😔🤯 7
1
#26 opened about 1 year ago
by
AronYang
放假了~
#24 opened about 1 year ago
by
hongpeiqin
会有Demo网站嘛?
2
#23 opened about 1 year ago
by
wudizhe001
没有 Model Card 和 Benchmark 效果才是最骚的,不是长假吗?自己慢慢品,哈哈哈!!!
🔥 4
2
#22 opened about 1 year ago
by
LukeAlan
果然,每到节假日放炸弹是 deepseek 的一贯风格
#21 opened about 1 year ago
by
sunny-he
进群讨论DS vs QWEN
2
#20 opened about 1 year ago
by
liguoyu3564
model for math?
#19 opened about 1 year ago
by
coming245
这是不让五一休息的信号?
#18 opened about 1 year ago
by
chaochaoli
Deepseek Prover v2 VS Qwen, 进群讨论
4
#17 opened about 1 year ago
by
xianml
Benchmark
👀 3
#16 opened about 1 year ago
by
xyang65
DeepSeek-Prover-V1 的升级版?
1
#13 opened about 1 year ago
by
zhnagchenchne
交流讨论群
1
#12 opened about 1 year ago
by
liangxiaofeng
小板凳已坐好
#11 opened about 1 year ago
by
carb-lee23
前排围观
#9 opened about 1 year ago
by
Yipeng1994
Prover-V2消息汇总帖
👍 8
#8 opened about 1 year ago
by
vaxin
Request: DOI
#7 opened about 1 year ago
by
Tritlo
特别厉害 Chadie搬来了小板凳
#6 opened about 1 year ago
by
Chadie