Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
Eval Results
text-generation-inference
fp8
Instructions to use deepseek-ai/DeepSeek-R1-0528 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-R1-0528 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-R1-0528", 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-R1-0528", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-R1-0528", 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-R1-0528 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-0528" # 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-0528", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-R1-0528
- SGLang
How to use deepseek-ai/DeepSeek-R1-0528 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-0528" \ --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-0528", "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-0528" \ --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-0528", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-R1-0528 with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-R1-0528
Install & run deepseek-ai/DeepSeek-R1-0528 easily using llmpm
#115 opened 2 months ago
by
sarthak-saxena
Add MMLU-Pro evaluation result (85.0)
#114 opened 4 months ago
by
burtenshaw
When I run on A800 , it throws error that ValueError: FP8 quantized models is only supported on GPUs with compute capability >= 8.9 (e.g 4090/H100), actual = 8.0
#113 opened 6 months ago
by
KYYYDS
BTC TRADE ETMEK
#112 opened 6 months ago
by
Mustafavvv
Distill to Qwen/Qwen3-30B-A3B
👍 2
#111 opened 8 months ago
by
olegshulyakov
Request: DOI
#110 opened 9 months ago
by
HadesChan
Update README.md
#109 opened 9 months ago
by
MindCraft24729
DeepSeek-R1-0528 Additional Distill Models
#108 opened 10 months ago
by
olegshulyakov
Linux mint terminal.
1
#107 opened 10 months ago
by
Annamed
Make them stand together
#106 opened 10 months ago
by
kelvin3
text gen langchain endpoint not working
#105 opened 10 months ago
by
Bengali007
deepseek
#104 opened 10 months ago
by
locallyloco
Voice identification
#102 opened 11 months ago
by
Michar64
With DeepSeek-R1-0528-Qwen3-8B only
#101 opened 11 months ago
by
Trilogix1
Feedback
🚀❤️ 2
1
#100 opened 11 months ago
by
ChuckMcSneed
int4 quantization destorys function_call accuracy
#99 opened 11 months ago
by
opter
deepseek-r1
#98 opened 11 months ago
by
bugrayildiz11
Request: DOI
#96 opened 11 months ago
by
Mahdi12345
comparing with Phi-4
#95 opened 11 months ago
by
gptlocalhost
Teste agora
#94 opened 11 months ago
by
souzaallef
Readme.md Update
#93 opened 11 months ago
by
reactkick
Rename README.md to Left: left=140, top=250, right=170, bottom=280. Right: left=230, top=250, right=260, bottom=280.
#92 opened 11 months ago
by
chan2003
This discussion has been hidden
3
#90 opened 11 months ago
by deleted
Definitely an improvement, however, it spams Chinese letters in my code
#89 opened 12 months ago
by
popeyed
I would like to ask, has the paper associated with this model been published?
2
#88 opened 12 months ago
by
likewendy
A man in the court room with lawyers
#85 opened 12 months ago
by
Longman4110
Questions about deploying function calls locally
👍 2
#84 opened 12 months ago
by
remozhang
Any plans for 32B/70B distilled models?
🚀 8
5
#83 opened 12 months ago
by
NanaBanana22
https://enzostvs-deepsite.hf.space/ not completing prompt task, any help?
#81 opened 12 months ago
by
titanic4g
Fix broken chat template
3
#80 opened 12 months ago
by
erichartford
Qwen3 4B distill
#79 opened 12 months ago
by
luke9090
Update tokenizer_config.json
#78 opened 12 months ago
by
Akshay47
Update README.md
#77 opened 12 months ago
by
cbarkinozer
does this model has tools support
2
#76 opened 12 months ago
by
oliver0102
刚部署满血deepseek r1 0528版本,推理性能提升这么多嘛?不是架构没变嘛?
12
#75 opened 12 months ago
by
jakyer
期待V4,迫不及待了🤩
3
#74 opened 12 months ago
by
noResign
support function call?
👍 1
1
#73 opened 12 months ago
by
zyj1099
This is by no means a minor upgrade.
👍 2
1
#72 opened 12 months ago
by
WyattTheSkid
后续DeepSeek更新发版,建议同步发布官方DeepSeek量化版(如AWQ、INT4等),进一步降低资源要求
👍 8
#71 opened 12 months ago
by
chenyuqiang
New R1 is indeed stronger!
🔥 4
#70 opened 12 months ago
by
DOFOFFICIAL
fixed
👍 4
6
#69 opened 12 months ago
by
erichartford
Do you have deepseek-r1-0528-awq plan?
6
#68 opened 12 months ago
by
oliver0102
README.md: Fixup model config!
1
#66 opened 12 months ago
by
hadadrjt
DeepSeek-R1-0528 仍然使用 2024 年 12 月所发布的 DeepSeek V3 Base 模型作为基座
#65 opened 12 months ago
by
gl12b
How to run 0528version on GPU which don't support FP8
4
#64 opened 12 months ago
by
Micdiane
There will be a 8b distilled model! cool
❤️ 2
1
#63 opened 12 months ago
by
DingzhenPearl
Create README.md
#62 opened 12 months ago
by
Crezus
Deepseek: 点击输入文字
🔥👍 20
1
#61 opened 12 months ago
by
basesssssp