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- Q2_K/DeepSeek-R1-Q2_K-00001-of-00005.gguf +2 -2
- Q2_K/DeepSeek-R1-Q2_K-00002-of-00005.gguf +2 -2
- Q2_K/DeepSeek-R1-Q2_K-00003-of-00005.gguf +2 -2
- Q2_K/DeepSeek-R1-Q2_K-00004-of-00005.gguf +2 -2
- Q2_K/DeepSeek-R1-Q2_K-00005-of-00005.gguf +2 -2
- Q4_K_M/DeepSeek-R1-Q4_K_M-00001-of-00009.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00001-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00002-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00003-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00004-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00005-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00006-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00007-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00008-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00009-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00010-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00011-of-00012.gguf +2 -2
- Q6_K/DeepSeek-R1-Q6_K-00012-of-00012.gguf +2 -2
Q2_K/DeepSeek-R1-Q2_K-00001-of-00005.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4dd09dd9e2ec7a3c67a9833ff67458d3ff3d0b6b7336f7317e1ce0369d0516b6
|
| 3 |
+
size 49461982816
|
Q2_K/DeepSeek-R1-Q2_K-00002-of-00005.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe31c3ff27b46342edc8b6a8a187010f48bdce646a596136487469da91a94aee
|
| 3 |
+
size 48585553600
|
Q2_K/DeepSeek-R1-Q2_K-00003-of-00005.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ff5ab5de23b55c4c6909aecea9246b21a1f893755d3e9dd9ac1675a954d1806
|
| 3 |
+
size 48889205856
|
Q2_K/DeepSeek-R1-Q2_K-00004-of-00005.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42e0f5df0287ccbd0402890d4a85caf7a0d1c9beb983bb90ee6d711b8ed25a58
|
| 3 |
+
size 48961357376
|
Q2_K/DeepSeek-R1-Q2_K-00005-of-00005.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce3b2d7451da1f7b36cda95fb72a6606da8323d2fa84225c3bd9e06044850f7e
|
| 3 |
+
size 48506033248
|
Q4_K_M/DeepSeek-R1-Q4_K_M-00001-of-00009.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fffd785e2c0c37006770e13cdb6f84dc6a525e1cb6d7ec158e275f1756e6727
|
| 3 |
+
size 48381724576
|
Q6_K/DeepSeek-R1-Q6_K-00001-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:339516c549dccbd55671026d3204815b90a61fab7d209394231823901ab721a9
|
| 3 |
+
size 47110369184
|
Q6_K/DeepSeek-R1-Q6_K-00002-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6292f5ca15512315f1c869e7dc4b17b22dfd2ce7211a55863743ce0b80d180a4
|
| 3 |
+
size 47237456160
|
Q6_K/DeepSeek-R1-Q6_K-00003-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:891221649528b07f380f31017d48bd9f821d763343a24b8e4db4d9890b581c2c
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00004-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9562acc7b4332198da78ba8ff85d89c3d9142c3177c7cb49445b0514bba6959
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00005-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10d96ddafca48f67fe99e59ceffbb3bd2efa490574853f10015c472f61b5b0cc
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00006-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb66cd2345e015ab634d17672b03ef40505d94557a1cfdfc40ddc00d2283bd60
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00007-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71927ce498897de29d7640b7f9d3cbb708a64375b5e938248d8fc1e8ebf36c4a
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00008-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5896ba04653cdd07edfdc06e6c272c941c31b137cd1f05771ea04a8c8e6ac991
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00009-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49ffa1d06e44330f9128fe4a65cb8b85f8dd4007fb324f467019564608b4f223
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00010-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01b65d4d83fbd9d06d6f0ad285a8c5cac7450fcb68632626dbde0c6e6a09a838
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00011-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c72e3c65af8094955dc61637d7ce8740d2ef3b91f713058065d6d0d8bdca4b09
|
| 3 |
+
size 47237456224
|
Q6_K/DeepSeek-R1-Q6_K-00012-of-00012.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87e1dda6f7a95933501b31f63433ab661e92254e6187c2103be4f4d369d23a9d
|
| 3 |
+
size 31437329600
|