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 Settings
- 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
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 +11 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00001-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00002-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00003-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00004-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00005-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00006-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00007-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00008-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00009-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00010-of-00011.gguf +3 -0
- DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00011-of-00011.gguf +3 -0
.gitattributes
CHANGED
|
@@ -93,3 +93,14 @@ DeepSeek-R1-Q5_K_S/DeepSeek-R1-Q5_K_S-00009-of-00012.gguf filter=lfs diff=lfs me
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 96 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00001-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00002-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00003-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00004-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00005-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00006-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00007-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00008-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00009-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00010-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00011-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00001-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d22dd4035fa90197f547670c6b70db458caf998eecc08dcf9fea65f30dfc76f
|
| 3 |
+
size 38765709664
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00002-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e27e3d1525eaa01c2cde87f56112bc762c590f219d9ba3674c6a7a92a8f7eb2
|
| 3 |
+
size 38593153856
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00003-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5950800e05f320da3e84b41b5a7633412c23385668b26fafde3bf2aab6bb315
|
| 3 |
+
size 38691070240
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00004-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e3d3d1815ca7a5be1e98bcda8678a8059e52e6ed33d1900ae303ffb5e73eafe
|
| 3 |
+
size 38698439040
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00005-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c57dbedbb9a249cda48d06f703f60d16aac22ff04159ead4970c3deb7b075e14
|
| 3 |
+
size 38593153888
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00006-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fb4a12993b10d8545505292ea95b9a5f0503e1a7203db1e8c74e0b6a1316a3e
|
| 3 |
+
size 38691070240
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00007-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75553d4feb1bc98f1f51fe0d17d2747d8d893f00b259a822a8e933979a8f5642
|
| 3 |
+
size 37725770112
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00008-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbdfe888966513f35da8de0b32682f3f28e86e22b9d6cbe84ae2f88d32874267
|
| 3 |
+
size 38593153888
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00009-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0abc88bdd0bd2fa983fc9d6a18dd06464790e9e2905078f6d63e78dd9a64b619
|
| 3 |
+
size 39663739168
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00010-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67696498cdecbef31c441d01db794cc49ee8627523e1cb23a89406532f2d5d7f
|
| 3 |
+
size 39388973792
|
DeepSeek-R1-Q4_K_M/DeepSeek-R1-Q4_K_M-00011-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4501788ca41aa50a373dc07bc71668b3b8ab6415b4bec5d8b3c8ebd510694832
|
| 3 |
+
size 17025954176
|