Instructions to use unsloth/DeepSeek-R1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/DeepSeek-R1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/DeepSeek-R1-GGUF", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-GGUF", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("unsloth/DeepSeek-R1-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/DeepSeek-R1-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/DeepSeek-R1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/DeepSeek-R1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/DeepSeek-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- SGLang
How to use unsloth/DeepSeek-R1-GGUF 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 "unsloth/DeepSeek-R1-GGUF" \ --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": "unsloth/DeepSeek-R1-GGUF", "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 "unsloth/DeepSeek-R1-GGUF" \ --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": "unsloth/DeepSeek-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/DeepSeek-R1-GGUF with Ollama:
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use unsloth/DeepSeek-R1-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Lemonade
How to use unsloth/DeepSeek-R1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/DeepSeek-R1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepSeek-R1-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Add files using upload-large-folder tool
Verified signature3c4941a -
Add files using upload-large-folder tool
Verified signature419b46f
-
Add files using upload-large-folder tool
Verified signatured220066
-
Add files using upload-large-folder tool
Verified signaturecdf2939 -
Add files using upload-large-folder tool
Verified signature02656f6 -
Rename DeepSeek-R1-Q2_K_L/DeepSeek-R1-Q2_K_L-00001-of-00005.gguf to DeepSeek-R1-Q2_K_L/DeepSeek-R1-Q2_K_XL-00001-of-00005.gguf
Verified signature9fc8512 -
Rename DeepSeek-R1-IQ1_UD_S/DeepSeek-R1-IQ1_S-00001-of-00003.gguf to DeepSeek-R1-UD-IQ1_S/DeepSeek-R1-UD-IQ1_S-00001-of-00003.gguf
Verified signature5047385 -
Rename DeepSeek-R1-IQ1_UD_S/DeepSeek-R1-IQ1_UD_S-00001-of-00003.gguf to DeepSeek-R1-IQ1_UD_S/DeepSeek-R1-IQ1_S-00001-of-00003.gguf
Verified signature956c18f -
Add files using upload-large-folder tool
Verified signature4408aa2 -
Add files using upload-large-folder tool
Verified signature1c5ee84 -
Add files using upload-large-folder tool
Verified signaturebe42a9a
-
Add files using upload-large-folder tool
Verified signaturec0b6265 -
Add files using upload-large-folder tool
Verified signature64961ae -
Add files using upload-large-folder tool
Verified signature38a2a8b -
Add files using upload-large-folder tool
Verified signature7b636fc -
Add files using upload-large-folder tool
Verified signature903b67e
-
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00016-of-00016.gguf with huggingface_hub
Verified signatureda91436 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00010-of-00010.gguf with huggingface_hub
Verified signatureb4a39e1 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00015-of-00016.gguf with huggingface_hub
Verified signature196a244 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00009-of-00010.gguf with huggingface_hub
Verified signaturef7df152 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00014-of-00016.gguf with huggingface_hub
Verified signature644e4cf -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00008-of-00010.gguf with huggingface_hub
Verified signaturea327fac -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00007-of-00010.gguf with huggingface_hub
Verified signature95d8024 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00006-of-00010.gguf with huggingface_hub
Verified signature73a4f39 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00005-of-00010.gguf with huggingface_hub
Verified signature55d05ad -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00013-of-00016.gguf with huggingface_hub
Verified signature7aaeb60 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00004-of-00010.gguf with huggingface_hub
Verified signature7f9a351 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00012-of-00016.gguf with huggingface_hub
Verified signature9be83b8 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00003-of-00010.gguf with huggingface_hub
Verified signature2f9e72b -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00009-of-00009.gguf with huggingface_hub
Verified signature9cd2c23 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00011-of-00016.gguf with huggingface_hub
Verified signature2d6a1e8 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00002-of-00010.gguf with huggingface_hub
Verified signature682ba45 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00008-of-00009.gguf with huggingface_hub
Verified signaturecd9ad9e -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00010-of-00016.gguf with huggingface_hub
Verified signature5046b45 -
Upload DeepSeek-R1-Q5_K_M/DeepSeek-R1-Zero-Q5_K_M-00001-of-00010.gguf with huggingface_hub
Verified signature1808b98 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00007-of-00009.gguf with huggingface_hub
Verified signaturee4f839c -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00009-of-00016.gguf with huggingface_hub
Verified signature44cd04c -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00006-of-00009.gguf with huggingface_hub
Verified signaturee1ef419 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00008-of-00016.gguf with huggingface_hub
Verified signatured92dfe6 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00005-of-00009.gguf with huggingface_hub
Verified signaturecae5bbc -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00007-of-00016.gguf with huggingface_hub
Verified signaturef1b1ca9 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00004-of-00009.gguf with huggingface_hub
Verified signaturebdd1ee2 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00006-of-00016.gguf with huggingface_hub
Verified signature660ab3b -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00003-of-00009.gguf with huggingface_hub
Verified signatured60f58c -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00005-of-00016.gguf with huggingface_hub
Verified signature14a2eb1 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00002-of-00009.gguf with huggingface_hub
Verified signatured3813cf -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00004-of-00016.gguf with huggingface_hub
Verified signaturea4973f1 -
Upload DeepSeek-R1-Q4_K_M/DeepSeek-R1-Zero-Q4_K_M-00001-of-00009.gguf with huggingface_hub
Verified signature829ee4b -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00003-of-00016.gguf with huggingface_hub
Verified signature9588464 -
Upload DeepSeek-R1-Q3_K_M/DeepSeek-R1-Q3_K_M-00007-of-00007.gguf with huggingface_hub
Verified signature8a17097