R1 0528
By DeepSeek. 684.5 billion parameters, a context window of 163,840 tokens and the licence mit.
Facts
- Released
- 2025-05-28 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- mit the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 684.5 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- 51.1 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
- Knowledge cutoff
- 2025-03-31 the knowledge cutoff OpenRouter lists OpenRouter, read
- Context window
- 163,840 tokens the maximum position embeddings in the model configuration model configuration, read
- 163,840 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 32,768 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- No the chat template in the tokenizer configuration has no place for tool definitions Hugging Face, read
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls OpenRouter, read
- Inputs and outputs
- text in, text out Hugging Face, read
- Good for
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| NanoGPT direct | 0.400 USD | 1.70 USD | 163,840 | older than 30 days; check the provider | models.dev, read |
| Deep Infra direct | 0.500 USD | 2.15 USD | 163,840 | older than 30 days; check the provider | models.dev, read |
| DeepInfra through OpenRouter | 0.500 USD | 2.15 USD | 163,840 | OpenRouter endpoints, read | |
| Meganova direct | 0.500 USD | 2.15 USD | 163,840 | older than 30 days; check the provider | models.dev, read |
| submodel direct | 0.500 USD | 2.15 USD | 75,000 | older than 30 days; check the provider | models.dev, read |
| SiliconFlow through OpenRouter | 0.500 USD | 2.18 USD | 163,840 | OpenRouter endpoints, read | |
| StreamLake through OpenRouter | 0.571 USD | 2.29 USD | 128,000 | OpenRouter endpoints, read | |
| Novita through OpenRouter | 0.700 USD | 2.50 USD | 163,840 | OpenRouter endpoints, read | |
| IO.NET direct | 2.00 USD | 8.75 USD | 128,000 | older than 30 days; check the provider | models.dev, read |
| Hugging Face direct | 3.00 USD | 5.00 USD | 163,840 | older than 30 days; check the provider | models.dev, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| IQ1_M | 137 GiB | 145 GiB | 147 GiB |
| IQ2_XXS | 153 GiB | 161 GiB | 163 GiB |
| IQ2_XS | 175 GiB | 185 GiB | 187 GiB |
| IQ2_S | 177 GiB | 186 GiB | 188 GiB |
| IQ2_M | 200 GiB | 211 GiB | 213 GiB |
| Q2_K | 222 GiB | 234 GiB | 235 GiB |
| Q2_K_L | 222 GiB | 234 GiB | 236 GiB |
| IQ3_XXS | 249 GiB | 263 GiB | 264 GiB |
| IQ3_XS | 258 GiB | 272 GiB | 274 GiB |
| Q3_K_S | 273 GiB | 288 GiB | 290 GiB |
| IQ3_M | 287 GiB | 302 GiB | 304 GiB |
| Q3_K_M | 287 GiB | 302 GiB | 304 GiB |
| Q3_K_L | 298 GiB | 314 GiB | 315 GiB |
| Q3_K_XL | 299 GiB | 314 GiB | 316 GiB |
| IQ4_XS | 335 GiB | 353 GiB | 355 GiB |
| IQ4_NL | 354 GiB | 373 GiB | 375 GiB |
| Q4_0 | 360 GiB | 379 GiB | 381 GiB |
| Q4_K_S | 367 GiB | 386 GiB | 388 GiB |
| Q4_K_M | 381 GiB | 401 GiB | 403 GiB |
| Q4_1 | 392 GiB | 413 GiB | 414 GiB |
| Q5_K_S | 431 GiB | 454 GiB | 455 GiB |
| Q5_K_M | 445 GiB | 469 GiB | 470 GiB |
| Q6_K | 515 GiB | 541 GiB | 543 GiB |
| Q8_0 | 664 GiB | 699 GiB | 700 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0 - LM Studio
lms get bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF lms server start - llama.cpp server
llama-server -hf bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0 --jinja - vLLM
vllm serve deepseek-ai/DeepSeek-R1-0528 - SGLang
sglang serve --model-path deepseek-ai/DeepSeek-R1-0528 --port 30000
Use it from your harness
Set up for DeepInfra with the model deepseek-ai/DeepSeek-R1-0528. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"deepinfra": {
"npm": "@ai-sdk/openai-compatible",
"name": "DeepInfra",
"options": {
"baseURL": "https://api.deepinfra.com/v1/openai",
"apiKey": "{env:DEEPINFRA_TOKEN}"
},
"models": {
"deepseek-ai/DeepSeek-R1-0528": {
"name": "R1 0528",
"limit": {
"context": 163840,
"output": 32768
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"deepinfra": {
"baseUrl": "https://api.deepinfra.com/v1/openai",
"api": "openai-completions",
"apiKey": "$DEEPINFRA_TOKEN",
"models": [
{
"id": "deepseek-ai/DeepSeek-R1-0528"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="deepseek-ai/DeepSeek-R1-0528"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- Hugging Face, model
deepseek-ai/DeepSeek-R1-0528 - IO.NET, model
deepseek-ai/DeepSeek-R1-0528 - Meganova, model
deepseek-ai/DeepSeek-R1-0528 - NanoGPT, model
deepseek-ai/DeepSeek-R1-0528 - submodel, model
deepseek-ai/DeepSeek-R1-0528 - OpenRouter, model
deepseek/deepseek-r1-0528 - Ollama, model
hf.co/bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by deepseek-ai Hugging Face, read
Sources of this page
- huggingface.co/api/models/deepseek-ai/DeepSeek-R1-0528, read
- huggingface.co/deepseek-ai/DeepSeek-R1-0528/raw/main/config.json, read
- huggingface.co/api/models/bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF/tree/main, read
- openrouter.ai/api/v1/models/deepseek/deepseek-r1-0528/endpoints, read
- openrouter.ai/api/v1/models, read
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.