Instructions to use bartowski/DeepSeek-R1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use bartowski/DeepSeek-R1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="bartowski/DeepSeek-R1-GGUF", filename="DeepSeek-R1-IQ1_M/DeepSeek-R1-IQ1_M-00001-of-00004.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use bartowski/DeepSeek-R1-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf bartowski/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/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-server -hf bartowski/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/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 bartowski/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf bartowski/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 bartowski/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf bartowski/DeepSeek-R1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/DeepSeek-R1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use bartowski/DeepSeek-R1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/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": "bartowski/DeepSeek-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bartowski/DeepSeek-R1-GGUF:Q4_K_M
- Ollama
How to use bartowski/DeepSeek-R1-GGUF with Ollama:
ollama run hf.co/bartowski/DeepSeek-R1-GGUF:Q4_K_M
- Unsloth Studio new
How to use bartowski/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 bartowski/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 bartowski/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 bartowski/DeepSeek-R1-GGUF to start chatting
- Docker Model Runner
How to use bartowski/DeepSeek-R1-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/DeepSeek-R1-GGUF:Q4_K_M
- Lemonade
How to use bartowski/DeepSeek-R1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/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
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00001-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00002-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00003-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00004-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00005-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00006-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00007-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00008-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00009-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00010-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00011-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00012-of-00013.gguf +3 -0
- DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00013-of-00013.gguf +3 -0
.gitattributes
CHANGED
|
@@ -68,3 +68,16 @@ DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00012-of-00015.gguf filter=lfs diff=lfs merge=
|
|
| 68 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00013-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00014-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00015-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00013-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00014-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
DeepSeek-R1-Q6_K/DeepSeek-R1-Q6_K-00015-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00001-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00002-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00003-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00004-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00005-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00006-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00007-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00008-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00009-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00010-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00001-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18583cd5b29766f6dcfd2ea044b4d59695bd55b0584c2408a1fe53f1b876cf2a
|
| 3 |
+
size 39055086016
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00002-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cc768b06835cd64b7f1bb7262c72efa121272ae9aa1044f28341748fdbc37e9
|
| 3 |
+
size 37494257952
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00003-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c1451ad55924743e80be7df2676e0f934244adb4ae2d008721d183c5be871ab
|
| 3 |
+
size 37866656544
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00004-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99f14da6c88eca29c6bbf53053c8ce41da7062df0e390a58d57e79a0ad7d4b22
|
| 3 |
+
size 37987961024
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00005-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de9a589ccd7cf79342c62be158772733a717c6ee91d64df061b7ef26b1695657
|
| 3 |
+
size 37494257984
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00006-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e64916796668e8c2fb28d993fe473d75bcbcd16dda3c570034bfcdd67e4a4852
|
| 3 |
+
size 37866656544
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00007-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38ee8a99ca719b9617d48a396fb56494d4f514d48518aab904fedf832b9946c5
|
| 3 |
+
size 37486889152
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00008-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a6cce3173f6299887b8d80e65ad3abfee1eb5c4b94d41a4a85fbf26a7c88cd9
|
| 3 |
+
size 37995329856
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00009-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8bfafaf5b9d30b21236b12b4c8ff610f8a513808e2555a4777ef7ef0a6b98cdb
|
| 3 |
+
size 39973772448
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00010-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ee7a951fc4a3440f2648efbc0c1253ca17cfd30a6badde6b5b877100f687a3a
|
| 3 |
+
size 37980926048
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00011-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb6398240deab3d22bf9ea65f32ec21605a45c7fcf8d4f9992531756b2288d66
|
| 3 |
+
size 38489032896
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00012-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac7e7520229baccec826815f2c8356c32aeac3d2a8cf44ed654c69e76f0a71d5
|
| 3 |
+
size 38997473600
|
DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00013-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8eb746c681df9416a2d109fe04076569a7783e5cd6687eaedbb64e8cc7bee0e9
|
| 3 |
+
size 16708258528
|