Instructions to use unsloth/DeepSeek-R1-GGUF-UD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/DeepSeek-R1-GGUF-UD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/DeepSeek-R1-GGUF-UD", 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("unsloth/DeepSeek-R1-GGUF-UD", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("unsloth/DeepSeek-R1-GGUF-UD", trust_remote_code=True) - llama-cpp-python
How to use unsloth/DeepSeek-R1-GGUF-UD with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/DeepSeek-R1-GGUF-UD", filename="BF16/DeepSeek-R1-BF16-00001-of-00030.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/DeepSeek-R1-GGUF-UD with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
- LM Studio
- Jan
- vLLM
How to use unsloth/DeepSeek-R1-GGUF-UD 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-UD" # 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-UD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
- SGLang
How to use unsloth/DeepSeek-R1-GGUF-UD 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-UD" \ --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-UD", "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-UD" \ --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-UD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/DeepSeek-R1-GGUF-UD with Ollama:
ollama run hf.co/unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
- Unsloth Studio
How to use unsloth/DeepSeek-R1-GGUF-UD with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/DeepSeek-R1-GGUF-UD to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/DeepSeek-R1-GGUF-UD to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/DeepSeek-R1-GGUF-UD to start chatting
- Docker Model Runner
How to use unsloth/DeepSeek-R1-GGUF-UD with Docker Model Runner:
docker model run hf.co/unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
- Lemonade
How to use unsloth/DeepSeek-R1-GGUF-UD with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/DeepSeek-R1-GGUF-UD:UD-Q4_K_XL
Run and chat with the model
lemonade run user.DeepSeek-R1-GGUF-UD-UD-Q4_K_XL
List all available models
lemonade list
Add files using upload-large-folder tool
Browse files- .gitattributes +15 -0
- Q8_0/DeepSeek-R1-Q8_0-00001-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00002-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00003-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00004-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00005-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00006-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00007-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00008-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00009-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00010-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00011-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00012-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00013-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00014-of-00015.gguf +3 -0
- Q8_0/DeepSeek-R1-Q8_0-00015-of-00015.gguf +3 -0
.gitattributes
CHANGED
|
@@ -136,3 +136,18 @@ Q3_K_M/DeepSeek-R1-Q3_K_M-00001-of-00007.gguf filter=lfs diff=lfs merge=lfs -tex
|
|
| 136 |
Q2_K_L/DeepSeek-R1-Q2_K_L-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 137 |
Q2_K_L/DeepSeek-R1-Q2_K_L-00001-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 138 |
Q3_K_M/DeepSeek-R1-Q3_K_M-00005-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
Q2_K_L/DeepSeek-R1-Q2_K_L-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 137 |
Q2_K_L/DeepSeek-R1-Q2_K_L-00001-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 138 |
Q3_K_M/DeepSeek-R1-Q3_K_M-00005-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 139 |
+
Q8_0/DeepSeek-R1-Q8_0-00015-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 140 |
+
Q8_0/DeepSeek-R1-Q8_0-00003-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 141 |
+
Q8_0/DeepSeek-R1-Q8_0-00008-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 142 |
+
Q8_0/DeepSeek-R1-Q8_0-00004-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 143 |
+
Q8_0/DeepSeek-R1-Q8_0-00014-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 144 |
+
Q8_0/DeepSeek-R1-Q8_0-00013-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 145 |
+
Q8_0/DeepSeek-R1-Q8_0-00001-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
Q8_0/DeepSeek-R1-Q8_0-00010-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
Q8_0/DeepSeek-R1-Q8_0-00011-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 148 |
+
Q8_0/DeepSeek-R1-Q8_0-00012-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 149 |
+
Q8_0/DeepSeek-R1-Q8_0-00009-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
Q8_0/DeepSeek-R1-Q8_0-00002-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
Q8_0/DeepSeek-R1-Q8_0-00007-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
Q8_0/DeepSeek-R1-Q8_0-00005-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
Q8_0/DeepSeek-R1-Q8_0-00006-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
Q8_0/DeepSeek-R1-Q8_0-00001-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad3fc12d849ea5edd003e8f8c773d3eaac6bbbb6928098fa8ac7ed2e9b41e7ad
|
| 3 |
+
size 47784555968
|
Q8_0/DeepSeek-R1-Q8_0-00002-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cf18d71ff8e4639899930423ab82059eadb34667604754e476aaef6b2627ecc
|
| 3 |
+
size 48927728256
|
Q8_0/DeepSeek-R1-Q8_0-00003-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a7d8a3d20538f672effe342051dd0adad93496d37f58ef1c707156aeca58fd2
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00004-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f739daf4c2765ea3357b8477140117938d64c2644a9a769a66d0d73d46f6f91
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00005-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27e2897bb4f95f19963b6b2e51b876ae2675055941f171fc3855ef8822efc63f
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00006-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de9bea97030743e56c399aa499c7b3de453196e127b6c0194b1fa741e7f999ea
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00007-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fb71a3eaac44363260e5f5e9c03c123ed3a7ea356d3a2a7e4c83eecd3530468
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00008-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d3b87ddf29b1ee94610edbc2c308080a88df2c18986cbbe26ce0c3abec36285
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00009-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5fa3f88b24b0f40477606c796492127d76b18be62f14cb8aaa6e800ea73b615
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00010-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:018e197573043012993e8250e06bb4161b0bb47f3d1a76daa244bfc610b18bfc
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00011-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d33ac47893374ab8208bfc926fca21a57d4463380449431b673a028b79270896
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00012-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b43889af3af872afbfba0abc8a0036c0896ea31c012466fe9d61c57e32b184c5
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00013-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eac373044edf5252f3c68d940e33d4be79547a12767490a8611417d4770988e5
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00014-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a14e2560d811e493a4bd35f838748f74be802b414b010b8e4211844098ff3f05
|
| 3 |
+
size 48927728320
|
Q8_0/DeepSeek-R1-Q8_0-00015-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b61e86c88453ec0d2a361b8e8c363dcbacc49ab49389e8e857dc31cf38d9e06e
|
| 3 |
+
size 29441495680
|