Cheetah: Rust backend for local language model inference with minimal memory use
Cheetah: Rust backend for local language model inference with minimal memory use
Open-source Rust backend Cheetah reduces idle RAM usage for small local language models to tens of megabytes, making them runnable on older laptops.
Many peripheral devices, embedded gateways, and laptops from a decade ago cannot run small language models locally. The reason is often not insufficient CPU performance, but excessive memory consumption by existing inference frameworks.
During context initialization and weight loading, they can allocate one or two gigabytes of RAM for temporary buffers. As a result, the system runs out of memory (OOM) before generation even starts.
This week, the official Rust forum introduced Cheetah, a new open-source backend for local inference designed for minimal memory consumption.
The author completely reworked the architecture, implementing lazy loading, and built CPU and Vulkan backends from scratch in pure Rust using SIMD instructions to accelerate computation.
The results are impressive:
- after the architectural rework, idle RAM usage when loading a 0.5B-parameter model dropped from more than 2 GB to 62 MB;
- with a 1.5B-parameter model, loading previously caused an out-of-memory error on the test computer, but now idle usage is only 67 MB;
- tripling the number of parameters added only 5 MB of extra RAM usage;
- even connecting and calling an external tool once, for example to get a weather forecast, increases memory usage by only 0.2 MB.
Thanks to an architecture that practically eliminates excessive memory allocation, the author managed to run a local model on a 2013 laptop with a dual-core Intel Core i5-4200M and achieve a generation speed of 13 tokens per second.
The developer is currently working on Cheetah v2, which is planned to include dynamic data distribution between VRAM, RAM, and disk.
Why it matters
AnalysisLower memory overhead makes local LLM inference viable on constrained hardware, opening opportunities for private, offline, and edge AI deployment.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Local LLM Inference
The practice of autonomously executing large language models directly on developer hardware (Apple Silicon, NVIDIA GPU) with guaranteed absolute privacy and zero dependency on the internet.
Fast Anything speeds up apps without rewriting everything in Rust
New open-source tool Fast Anything identifies performance bottlenecks and rewrites only the slowest code paths in Rust.
Jev and System One AI: A Complete Practical Guide to the Decision Model from TypeSafe
A deep engineering breakdown of the flagship Jev model: System One architecture versus LLMs, Choice/Score/Noul primitives, request parallelism, confidence mathematics, video use cases, code, and an overview of local open-weight alternatives (Laya, GLiNER2.5, CLM-8B).
Autonomous Local AI and Data Privacy
The practice of executing machine learning models entirely on personal physical hardware without internet connectivity (Air-Gapped AI). Guarantees 100% protection against the leakage of trade secrets, personal data (GDPR/HIPAA), and cloud provider failures.