#116116th of 117 in Model serving
picolm
Minimal C inference engine for GGUF LLaMA models on low-RAM boards
- Stars
- 2.2k
- License
- MIT
- Last commit
- Feb 2026
- Language
- C
1,554 on 28 Apr 20262,222 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
PicoLM is a from-scratch LLM inference engine in about 2,500 lines of C11 that reads GGUF files directly and runs LLaMA-architecture models on CPU. It memory-maps the model and streams layers, so TinyLlama 1.1B Q4_K_M runs in about 45 MB of RAM. It has a stdin/CLI interface, a grammar-constrained `--json` mode, and was built as the local backend for PicoClaw.
Who it is for: Embedded and Raspberry Pi developers running small LLMs offline on CPU
Strengths
- Roughly 80 KB binary with only libc, libm and libpthread as dependencies
- ~45 MB runtime RAM for TinyLlama 1.1B Q4_K_M at 2048 context via mmap
- `--json` grammar mode forces syntactically valid JSON for tool calling
- `--cache` persists the KV cache to skip prompt prefill on repeated prompts
Weaknesses
- CLI only; the README documents no HTTP or OpenAI-compatible server
- Only LLaMA-architecture GGUF models; no GPU offload
- Slow on cheap boards: about 1 tok/s on LicheeRV Nano, 2 on Pi Zero 2W
- Pi 4 and Zero 2W speeds are estimates, not measured
What it needs
- no GPU
- Needs libc, libm, libpthread
- Models: GGUF v2/v3, LLaMA architecture, TinyLlama 1.1B, Llama 2 7B, Phi-2
Also in Model serving
See all 117| Rank | Project | Score |
|---|---|---|
| #112 | mllmC++ inference engine for running multimodal LLMs on phones and edge devices | 37 out of 100 |
| #113 | mini-sglangCompact SGLang reimplementation for serving LLMs, in about 5,000 lines of Python | 35 out of 100 |
| #114 | seldon-coreKubernetes framework for serving ML models and Kafka-connected pipelines | 34 out of 100 |
| #115 | gemma.cppMinimal C++ CPU inference engine for Gemma 2, Gemma 3 and PaliGemma 2 | 20 out of 100 |
| #117 | deepstream-yoloNVIDIA DeepStream configs and GPU parsers for running YOLO and DETR detectors | 12 out of 100 |