Downloads · 30 days
17
19% of all-time downloads
ExoticsLabs/deepseek-r1-distill-qwen-1.5b-Fast
deepseek-r1-distill-qwen-1.5b-Fast is a text generation model from ExoticsLabs. Use it when you need the model to write or continue text. The card lists the license as mit.
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…
Downloads · 30 days
17
19% of all-time downloads
All-time downloads
88
Public
Repo size
3.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf3.6 GB · 100%
From the Hugging Face model README
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.
Standard LLM deployments often suffer from excessive memory overhead and slow tokenization when running on CPUs. This implementation solves these bottlenecks through:
llama.cpp.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.
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=True is utilized during model instantiation to prevent memory spikes.float32 or bfloat16 depending on the instruction set availability (AVX-512/AMX)..pt)The optimized state dictionary including the custom processing logic. Ideal for Python-based research environments.
.gguf)The model has been converted using a specialized HuggingFace-to-GGUF pipeline.
llama.cpp, Ollama, and LM Studio.<|User|>, <|Assistant|>, and <think>) are baked into the GGUF metadata.<|User|>{prompt}<|Assistant|><think>
This documentation outlines the methodology for efficient local LLM deployment without relying on high-end GPU infrastructure.