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 +5 -0
- DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00001-of-00005.gguf +3 -0
- DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00002-of-00005.gguf +3 -0
- DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00003-of-00005.gguf +3 -0
- DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00004-of-00005.gguf +3 -0
- DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00005-of-00005.gguf +3 -0
.gitattributes
CHANGED
|
@@ -236,3 +236,8 @@ DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00002-of-00005.gguf filter=lfs diff=lfs me
|
|
| 236 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00003-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 237 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00004-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 238 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00003-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 237 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00004-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 238 |
DeepSeek-R1-IQ2_XS/DeepSeek-R1-IQ2_XS-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 239 |
+
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00001-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 240 |
+
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00002-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 241 |
+
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00003-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 242 |
+
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00004-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 243 |
+
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00001-of-00005.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0ff95b9cc37f23d60ebb7f6743741c1a643f5f7b509ccea6553b76e09dfac2d
|
| 3 |
+
size 39641128128
|
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00002-of-00005.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18d03d0ee5010dada3fb0e321f1903ba01f8531690bbc362ba421e7c8e229f99
|
| 3 |
+
size 39678428832
|
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00003-of-00005.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6747c267517195b7e13293d4258ba8549e3bfc69e4f81714fae865faabe8519
|
| 3 |
+
size 39630152320
|
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00004-of-00005.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25405cafc525ef9228d61cc909b05a5919b8939829c7830424b41b8b1d011584
|
| 3 |
+
size 39637521152
|
DeepSeek-R1-IQ2_XXS/DeepSeek-R1-IQ2_XXS-00005-of-00005.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b113e231ed73789d4e34f70b601776abe5bbce44996398e6a4ef60b3d05d3a2e
|
| 3 |
+
size 15840931936
|