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 +12 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00001-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00002-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00003-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00004-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00005-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00006-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00007-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00008-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00009-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00010-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00011-of-00012.gguf +3 -0
- DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00012-of-00012.gguf +3 -0
.gitattributes
CHANGED
|
@@ -81,3 +81,15 @@ DeepSeek-R1-Q5_K_M/DeepSeek-R1-Q5_K_M-00010-of-00013.gguf filter=lfs diff=lfs me
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 84 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00001-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00002-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00003-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00004-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00005-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00006-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00007-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00008-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00009-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00010-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00011-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00012-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00001-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91d32201263f86edc9e6f79bff1b7fd8cd7b4c76eaaa075906344c1dd8b046d7
|
| 3 |
+
size 39599309504
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00002-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34a8386601e8f32548d14196fa366f28b172c40fb8ba63d4bf1b504a3020c83e
|
| 3 |
+
size 39586970016
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00003-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31f6ebda6c95e80552f15e0a9a33b2bc5b18a80988f43b37247b89688b9d61cf
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00004-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:999d58dc00f478f3ad45d0cbb3f9093e13bad74ba8de470115383197fb15d517
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00005-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e6716b691cefba53336bb7f82cc92f1410aac5d9ab145cbe79b7f8f40bd6540
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00006-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be2cb1745744ba46e8663b025d531158ad771a0b6acb21c39b94be833d60e1fa
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00007-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3d6fb040327d0906c5edb886a53ec1eeddb5fe086dca97891e8813284afae13
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00008-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:919d80d528a01eb2de04368a336b0fc1b33991d45dba0478d1c9ffd6532ff855
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00009-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83547428f998bc9d9d7bd4a5aca01199e2d40d4285bc5b80df1ef29eb25b5993
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00010-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0f58d27b2b2c25bb88792b29806ebcb6cd05bb5e1c885549460897f34e9effb
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00011-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88b5133b02794aedb135bd968ac5ded31f0f6248037a114f2d2ef94eb4943b5a
|
| 3 |
+
size 39586970080
|
DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00012-of-00012.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d763dbcb6ce1d5c8ce0db3f31d1ff52c5d7c964ec473af2a0156e117ee8abf3
|
| 3 |
+
size 26345966048
|