Instructions to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast 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 ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast # Run inference directly in the terminal: llama cli -hf ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast # Run inference directly in the terminal: llama cli -hf ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
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 ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast # Run inference directly in the terminal: ./llama-cli -hf ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
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 ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast # Run inference directly in the terminal: ./build/bin/llama-cli -hf ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
Use Docker
docker model run hf.co/ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
- LM Studio
- Jan
- vLLM
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
- Ollama
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast with Ollama:
ollama run hf.co/ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
- Unsloth Studio
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast 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 ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast 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 ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast to start chatting
- Docker Model Runner
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast with Docker Model Runner:
docker model run hf.co/ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
- Lemonade
How to use ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
Run and chat with the model
lemonade run user.deepseek-r1-distill-qwen-1.5b-Fast-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
DeepSeek-R1 CPU Optimization & GGUF Conversion Guide
This project focuses on the high-performance optimization of the DeepSeek-R1-Distill-Qwen-1.5B model for local CPU inference. By bypassing standard library overhead and implementing a custom encoding layer, we achieve significant throughput improvements on consumer-grade hardware.
🚀 Project Overview
Standard LLM deployments often suffer from excessive memory overhead and slow tokenization when running on CPUs. This implementation solves these bottlenecks through:
- Custom Raw Encoding: A library-free Byte-Level BPE processor optimized for DeepSeek/Qwen token artifacts.
- Hardware-Level Threading: Explicit control over the PyTorch execution engine to match physical CPU core counts.
- GGUF Quantization: Conversion to the GGUF format for industry-standard CPU inference via
llama.cpp.
🛠 Technical Architecture
1. The Custom RawProcessor
The core of the speed optimization is the RawProcessor. Unlike standard tokenizers that rely on heavy Rust bindings or complex dependency chains, this processor handles the specific whitespace markers (Ġ for spaces and Ċ for newlines) natively.
- Mechanism: Greedy longest-match BPE traversal.
- Artifact Handling: Maps byte-level representations back to standard UTF-8 whitespace to ensure reasoning chains (like those in DeepSeek-R1) render correctly without specialized rendering logic.
2. CPU Inference Tuning
To prevent thread contention and maximize throughput:
torch.set_num_threads()is dynamically set to the environment's physical core count.low_cpu_mem_usage=Trueis utilized during model instantiation to prevent memory spikes.- The model is forced into
float32orbfloat16depending on the instruction set availability (AVX-512/AMX).
📦 Deployment Formats
Native PyTorch (.pt)
The optimized state dictionary including the custom processing logic. Ideal for Python-based research environments.
GGUF Format (.gguf)
The model has been converted using a specialized HuggingFace-to-GGUF pipeline.
- Quantization: F16 (Floating Point 16) for maximum precision.
- Compatibility: Fully compatible with
llama.cpp,Ollama, andLM Studio. - Integrated Vocab: The custom BPE merge rules and special tokens (
<|User|>,<|Assistant|>, and<think>) are baked into the GGUF metadata.
📈 Performance Metrics
- Latency: ~0.5s - 1.0s per token (hardware dependent).
- Thread Efficiency: Linear scaling observed up to 4 physical cores.
- Stability: Repetition penalties (1.2x) applied to prevent reasoning loop degradation.
📝 How to Use
- Load the GGUF: Use any GGUF-compatible runner.
- Prompt Template:
<|User|>{prompt}<|Assistant|><think> - Inference: Ensure you set the thread count to match your CPU's physical (not logical) cores for optimal speed.
This documentation outlines the methodology for efficient local LLM deployment without relying on high-end GPU infrastructure.
- Downloads last month
- 8
We're not able to determine the quantization variants.
Model tree for ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B