I'm 15. I don't have a massive GPU cluster, just a 2013 ThinkPad with an NVIDIA GT 730M (983MB VRAM). I tried using Candle, but its owned-tensor design couldn't do the zero-materialization mmap I needed for tiered memory. So, I built Cheetah from scratch.
What Cheetah is:
It's an 8MB (yes, megabytes) standalone binary written in Rust and C. It runs Safetensors natively, supports 7 model families (Llama, Qwen, Mistral, etc.), has an OpenAI-compatible server, and utilizes a micro-kernel architecture (Opstoolbox).
The 1.3.4 Update (The exciting part):
In the last 48 hours, I've been optimizing the GEMM kernels:
-
Q8 & Q4 Dynamic Quantization: You can run ANY bf16/f16 model with a simple environment variable (
CHEETAH_QUANT_Q8=1). The engine dynamically quantizes linear weights on first use, releasing the source pages. No pre-quantized GGUF required. -
2× Decode Speedup on Q8: Implemented batched int8 GEMM. Hardware constraint is inversely proportional to the benefit: the older the CPU, the bigger the relative speedup.
-
AVX-512 & VNNI support: With careful target features, I managed to support both Intel and AMD CPUs (including fallback to AVX2).
-
Zero Warnings, 226 Tests Passed: Including bit-exact isolation tests for the Q4 nibble unpacking and odd-width padding.
Why this matters:
You can finally run edge AI on hardware that other frameworks gave up on. It uses Rust's safety for the orchestration and C/Vulkan for the hot paths, maintaining zero per-token allocations.
No pre-built binaries are provided (to ensure maximum hardware acceleration), but you can clone and build it here: GitHub - DA3M0/Cheetah: An ultra-lean local LLM inference engine. Native Safetensors support, dual CPU/Vulkan backends, and a modular operator ecosystem with custom Shader extensions. Built for Agents and edge computing. · GitHub.
I'd love to hear your thoughts on the Rust-side architecture (especially the macro-free operator registry). Thanks for reading!
1 post - 1 participant