Instructions to use deepseek-ai/DeepSeek-R1-Distill-Qwen-32B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-R1-Distill-Qwen-32B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B") model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B") 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-R1-Distill-Qwen-32B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B" # 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-R1-Distill-Qwen-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B
- SGLang
How to use deepseek-ai/DeepSeek-R1-Distill-Qwen-32B 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-R1-Distill-Qwen-32B" \ --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-R1-Distill-Qwen-32B", "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-R1-Distill-Qwen-32B" \ --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-R1-Distill-Qwen-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-R1-Distill-Qwen-32B with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B
Fix chat_template crash when assistant message omits the `content` key
#51 opened 10 days ago
by
qgallouedec
Install & run this model easily using llmpm
#50 opened 2 months ago
by
sarthak-saxena
DS-R1-Distill-QW-32B
#49 opened 2 months ago
by
Forestz
Update README.md
#48 opened 4 months ago
by
cherry0328
Update README.md
#47 opened 12 months ago
by
Ahriiii
Deepseek Output Switching to Chinese + Coding Problems
#46 opened about 1 year ago
by
LewisKaylee
Model frequently hallucinates when answering a question written in non-English.
#45 opened about 1 year ago
by
devopsML
Update README.md
#44 opened about 1 year ago
by
Rizki-firman
Create chatsetup.py
#43 opened about 1 year ago
by
Raiff1982
申请发布awq格式模型:deepseek-ai/DeepSeek-R1-Distill-Qwen-32B-AWQ
#42 opened about 1 year ago
by
classdemo
scsdifyonlie
#41 opened about 1 year ago
by
ggsunny
Update README.md
#40 opened about 1 year ago
by
nottii
Update README.md
#39 opened about 1 year ago
by
nottii
Request: DOI
#38 opened over 1 year ago
by
dragos-bajenaru37
[RESOLVED] Model is not outputting the <think> token at the beginning.
👍 1
6
#37 opened over 1 year ago
by
bsvaz
🚩 Report
1
#36 opened over 1 year ago
by
proudcats
Generate crashed by repeatedly generating <think>
1
#35 opened over 1 year ago
by
qpz
Weird......Dose it 32b model support vision ability ?
#34 opened over 1 year ago
by
baiall
Set base_model to deepseek-ai/DeepSeek-R1
#33 opened over 1 year ago
by
victor
How to build tools call system prompt?
🔥 1
#32 opened over 1 year ago
by
zhaocc1106
The input starts with the token "<|begin▁of▁sentence|>" repeated twice. / 输入开头重复2次“<|begin▁of▁sentence|>”
1
#31 opened over 1 year ago
by
Gya123
Can you distill qwen-2.5-72b?
👍 1
1
#30 opened over 1 year ago
by
xldistance
weight files naming is not regular rule
#29 opened over 1 year ago
by
haili-tian
bos_token_id is defined incorrectly
1
#28 opened over 1 year ago
by
haili-tian
Longer context length
👍 2
#26 opened over 1 year ago
by
comorado
Qwen 32B Compatibility on PC w/ Ryzen 7 Pro 8840HS w/ 780M Graphics 2x32GB RAM 1TB DDR5 SSD
#25 opened over 1 year ago
by
arzx
请问我在用llama-factory微调distill-qwen系列模型时,模型名称选哪个?
1
#24 opened over 1 year ago
by
wangda1
Update README.md
#23 opened over 1 year ago
by
Rizki-firman
Update README.md
#22 opened over 1 year ago
by
payam8499
Tokenizer config's `chat_template` removes everything before `</think>` XML closing tag
👍 5
2
#21 opened over 1 year ago
by
jamesbraza
Consistency, can Deepseek pass? 一致性,deepseek能及格吗?
#20 opened over 1 year ago
by
zwpython
running on local machine
7
#19 opened over 1 year ago
by
saidavanam
Poor performance in the leaderboard?
👍 1
7
#17 opened over 1 year ago
by
L29Ah
Add text-generation pipeline tag
#16 opened over 1 year ago
by
nielsr
comfyui-deepseek-r1
3
#15 opened over 1 year ago
by
zwpython
sharing something maybe beneficial ?
#13 opened over 1 year ago
by
9x25dillon
Please convert these models to GGUF format...
👍 2
5
#12 opened over 1 year ago
by
Moodym
Support For Japanese Model
👍👀 2
6
#11 opened over 1 year ago
by
alfredplpl
Tokenizer config is wrong
8
#10 opened over 1 year ago
by
stoshniwal
Garbage characters generated with using 32B
3
#9 opened over 1 year ago
by
carlosbdw
Please add a qwen2.5-72b distill
➕👀 21
#8 opened over 1 year ago
by
warlock-edward
Does this have tooling support?
➕ 9
5
#7 opened over 1 year ago
by
xbruce22
What temp are these expected to be used at?
2
#6 opened over 1 year ago
by
rombodawg
YaRN block required?
3
#5 opened over 1 year ago
by
robbiemu
Please add a qwen coder 32b distill.
👍 20
#4 opened over 1 year ago
by
ciprianv
System Prompt
👀👍 16
18
#2 opened over 1 year ago
by
Wanfq