Instructions to use unsloth/DeepSeek-R1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/DeepSeek-R1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/DeepSeek-R1-GGUF", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-GGUF", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("unsloth/DeepSeek-R1-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/DeepSeek-R1-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/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 serve -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/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 unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf unsloth/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 unsloth/DeepSeek-R1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use unsloth/DeepSeek-R1-GGUF 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" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- SGLang
How to use unsloth/DeepSeek-R1-GGUF 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/DeepSeek-R1-GGUF with Ollama:
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use unsloth/DeepSeek-R1-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Lemonade
How to use unsloth/DeepSeek-R1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/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
- Atomic Chat
Commit History
-
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00016-of-00016.gguf
Verified signature1ea61f3 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00015-of-00016.gguf
Verified signature2f92201 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00014-of-00016.gguf
Verified signaturebec8a63 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00013-of-00016.gguf
Verified signature8814539 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00012-of-00016.gguf
Verified signatureec452de -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00011-of-00016.gguf
Verified signaturebd215b1 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00010-of-00016.gguf
Verified signatureb9d16cf -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00009-of-00016.gguf
Verified signature7b73d3f -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00008-of-00016.gguf
Verified signatureef8c746 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00007-of-00016.gguf
Verified signature536bd2b -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00006-of-00016.gguf
Verified signature9a460e5 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00005-of-00016.gguf
Verified signaturecc7d9fe -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00004-of-00016.gguf
Verified signature305cdc7 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00003-of-00016.gguf
Verified signature2ff5ee0 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00002-of-00016.gguf
Verified signature3510039 -
Delete DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00001-of-00016.gguf
Verified signature40bbe17 -
Add files using upload-large-folder tool
Verified signature903b67e
-
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00016-of-00016.gguf with huggingface_hub
Verified signatureda91436 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00015-of-00016.gguf with huggingface_hub
Verified signature196a244 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00014-of-00016.gguf with huggingface_hub
Verified signature644e4cf -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00013-of-00016.gguf with huggingface_hub
Verified signature7aaeb60 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00012-of-00016.gguf with huggingface_hub
Verified signature9be83b8 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00011-of-00016.gguf with huggingface_hub
Verified signature2d6a1e8 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00010-of-00016.gguf with huggingface_hub
Verified signature5046b45 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00009-of-00016.gguf with huggingface_hub
Verified signature44cd04c -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00008-of-00016.gguf with huggingface_hub
Verified signatured92dfe6 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00007-of-00016.gguf with huggingface_hub
Verified signaturef1b1ca9 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00006-of-00016.gguf with huggingface_hub
Verified signature660ab3b -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00005-of-00016.gguf with huggingface_hub
Verified signature14a2eb1 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00004-of-00016.gguf with huggingface_hub
Verified signaturea4973f1 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00003-of-00016.gguf with huggingface_hub
Verified signature9588464 -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00002-of-00016.gguf with huggingface_hub
Verified signaturea7d0b1b -
Upload DeepSeek-R1-Q8_0/DeepSeek-R1-BF16-256x20B-Q8_0-00001-of-00016.gguf with huggingface_hub
Verified signature1d33ad8