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) 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", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("unsloth/DeepSeek-R1-GGUF", trust_remote_code=True) - llama-cpp-python
How to use unsloth/DeepSeek-R1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/DeepSeek-R1-GGUF", filename="DeepSeek-R1-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 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
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: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/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: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
- 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 Studio
How to use unsloth/DeepSeek-R1-GGUF 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 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 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 to start chatting
- Atomic Chat new
- 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
Delete Q8_0
Browse files- Q8_0/DeepSeek-R1-Q8_0-00001-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00002-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00003-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00004-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00005-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00006-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00007-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00008-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00009-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00010-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00011-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00012-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00013-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00014-of-00015.gguf +0 -3
- Q8_0/DeepSeek-R1-Q8_0-00015-of-00015.gguf +0 -3
Q8_0/DeepSeek-R1-Q8_0-00001-of-00015.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:43b619182f0bdfe190d62bc34711d12691f963c9fbd1a2ace3a37a12fa34b3f7
|
| 3 |
-
size 47784555968
|
|
|
|
|
|
|
|
|
|
|
|
Q8_0/DeepSeek-R1-Q8_0-00002-of-00015.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 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
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b61e86c88453ec0d2a361b8e8c363dcbacc49ab49389e8e857dc31cf38d9e06e
|
| 3 |
-
size 29441495680
|
|
|
|
|
|
|
|
|
|
|
|