Instructions to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF", filename="DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF with Ollama:
ollama run hf.co/happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M
- Unsloth Studio
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-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 happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF with Docker Model Runner:
docker model run hf.co/happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M
- Lemonade
How to use happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepSeek-R1-Distill-Qwen-1.5B-GGUF-Q4_K_M
List all available models
lemonade list
DeepSeek-R1-Distill-Qwen-1.5B — GGUF, benchmarked by QuantThink
GGUF quantizations of deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B, originally converted by bartowski (re-hosted here unmodified — same files, same quantization recipe, all credit for the GGUF conversion itself belongs to bartowski). What's new here is the benchmark data: real, measured accuracy/thinking-length/cost-to-solve for each quant level from QuantThink, a reproducible benchmark measuring how quantization affects small reasoning (long chain-of-thought) models on a 4GB consumer GPU.
Measured results (RTX 3050 Laptop, 4GB VRAM)
First-pass numbers (N=6 problems x 2 seeds = 12 samples per cell — disclosed small-N first pass, not yet the full statistically-rigorous sweep; see docs/RUN_REAL.md for the complete write-up and caveats):
| Quant | File | GSM8K Acc | GSM8K TL | MATH-500 Acc | MATH-500 TL | Peak VRAM |
|---|---|---|---|---|---|---|
| fp16 | DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf |
0.667 | 469.8 | 0.417 | 1465.3 | 3.50 GB |
| Q8_0 | DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf |
0.750 | 385.5 | 0.500 | 1335.9 | 2.16 GB |
| Q5_K_M | DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf |
0.667 | 244.3 | 0.417 | 1215.9 | 1.67 GB |
| Q4_K_M | DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf |
0.583 | 420.8 | 0.333 | 1280.7 | 1.55 GB |
Q4_K_M is the only quant showing a measurable accuracy drop vs. fp16 (-8.3 points on both benchmarks) at this sample size; Q8_0 and Q5_K_M show no measurable degradation. See the GitHub repo's docs/RUN_REAL.md for KV-cache-quantization results (including a genuine finding: Q4 KV cache causes total generation collapse for this model, not smooth degradation), thinking-cap results, and the Memory-Budget Frontier this data feeds.
Sampling used for these numbers
Temperature 0.6, top-p 0.95 (per the model card's own recommendation), fixed seed set [0, 1] — not greedy decoding, since reasoning models are known to degrade under greedy sampling.
Reproduce
git clone https://github.com/Happynood/quant-reasoning-bench
cd quant-reasoning-bench
uv sync --extra llama-cpp
uv run quantthink run --config configs/phase1/Q4_K_M_E1.yaml --output result.json --manifest manifest.json
Related
- GitHub repository
- quantthink-results — all real result.json files
- quantthink-leaderboard — interactive leaderboard
- Original GGUF conversion: bartowski/DeepSeek-R1-Distill-Qwen-1.5B-GGUF
- Original model: deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
- Downloads last month
- 131
4-bit
5-bit
8-bit
16-bit
Model tree for happynood/DeepSeek-R1-Distill-Qwen-1.5B-GGUF
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B