CPU-Only Local LLM Inference on 8 GB RAM: openset-llm Tested
openset-llm
Fast local LLM inference on plain CPUs. No GPU, 8 GB of RAM. OpenAI-compatible server.
The README reports 17–20 tokens/sec for a 27B ternary model on an 8-core, 8 GB AVX-512 CPU. It also documents a local OpenAI-compatible API and hardware limits.
openset-llm is an inference engine that targets the hardware most developers already own: a plain x86-64 CPU with AVX-512 and 8 GB of system RAM. No GPU, no unified memory, no offloading. The project's README centers on a single claim: a 27-billion-parameter ternary model (PrismML's Bonsai-2-27B, 5.95 GB on disk) decoding at 17–20 tokens per second on an 8 vCPU / 8 GB Ice Lake Xeon box. That speed, if reproducible, would let a 27B model run where it usually cannot — on a laptop-class memory budget. The engine serves an OpenAI-compatible HTTP API, so existing clients and agent frameworks work without code changes. This article examines what the README reports about hardware requirements, memory layout, server modes, and the speed numbers the authors published.
Hardware Requirements and CPU Fast Paths
The README states the fast path requires AVX-512 with VNNI and VBMI instructions. Supported CPUs include Intel Xeon Ice Lake and newer (Sapphire Rapids, Emerald Rapids, Granite Rapids), AMD EPYC Zen 4 (9004 series) and Zen 5 (9005 series), and AMD Ryzen 7000/9000 desktop chips. Intel Core 12th generation and later lack AVX-512 and fall back to a slower kernel; the README reports 4.8–5.7× slower decode on Ice Lake boxes. Cascade Lake / Cooper Lake get a partial path (AVX-512 VNNI but no VBMI) at 0.67–0.82× the full-path speed. Skylake-SP/X fall back to the fork's kernel. ARM64 (Graviton, Ampere, Raspberry Pi 5) builds but is untested. Apple Silicon is not supported by the installer; the README points to PrismML's Metal build instead.
- Fast path: AVX-512 VNNI + VBMI (Ice Lake Xeon, Zen 4/5 EPYC, Ryzen 7000/9000)
- Partial path: Cascade Lake / Cooper Lake (VNNI only, no VBMI) — 0.67–0.82× full speed
- Fallback: Core 12th gen+, Skylake-SP/X, ARM64 — 4.8–5.7× slower than fast path on Ice Lake
- Apple Silicon: not supported; use PrismML Metal build
Memory Budget: Fitting 27B in 8 GB
The README emphasizes that everything runs in 8 GB of system memory with no GPU memory, no unified memory, and no disk offloading for the primary model. A standard 4-bit GGUF of Qwen3.8-27B is 16–19 GB, which is why 27B models usually need 24–32 GB machines or GPUs. The engine uses PrismML's ternary Bonsai-2-27B (PTQ1_0 quantization) plus a grafted MTP draft head for speculative decoding. The combined file is 5.95 GB on disk (~6.2 GB mmapped). Repacked weights at runtime add ~1.1 GB. The README shows a memory budget table (truncated in the source) that accounts for model, repacked weights, KV cache, and overhead, all staying under 8 GB. Mainline llama.cpp v1.0.0's packing of the same ternary model is 7.63 GB and pages from disk on an 8 GB box, per the README's spot check.
- Model file (Bonsai-2-27B PTQ1_0 + MTP head): ~5.95 GB disk, ~6.2 GB mmapped
- Repacked weights at runtime: ~1.1 GB
- Total fits in 8 GB system RAM with KV cache and overhead
- Mainline llama.cpp packing: 7.63 GB, pages from disk on 8 GB
OpenAI-Compatible Server and Local Workflow
The engine exposes an OpenAI-compatible HTTP API at /v1, so any OpenAI SDK or agent framework (LangChain, AutoGPT, etc.) works by pointing base_url to http://127.0.0.1:8080/v1. The README provides three server entry points: ./serve (single user, fastest replies, includes WebUI at port 8080), ./serve --multi N (N concurrent requests, README reports 2.3× total throughput on short prompts with --multi 4), and ./serve --no-webui (API only). A Python snippet shows the OpenAI client with api_key="unused". The chat page is described as experimental; the first reply takes several seconds to begin. The installer (./install.sh) checks CPU and RAM, builds from source (requires git, cmake, C++ compiler), and downloads the ~7.3 GB model from Hugging Face. On Windows, WSL2 must be allocated 8 GB RAM.
- OpenAI-compatible /v1 endpoint — drop-in for existing clients
- ./serve — single user, WebUI at :8080, speculative decoding on
- ./serve --multi 4 — 4 concurrent requests, 2.3× aggregate tok/s on short prompts
- ./serve --no-webui — API only
- Installer builds from source; downloads ~7.3 GB model on first run
README-Reported Speed Numbers (Attributed to Project)
All speed figures below come from the project's README; they are not independently verified. On an 8 vCPU / 8 GB Ice Lake Xeon cloud VM (2026-11-11 run, 48 paired prompts, greedy, thinking off): openset-llm ./serve (speculative decoding on) median 19.67 tok/s [18.53, 20.96]; ./serve --no-spec 10.01 tok/s; ik_llama.cpp -rtr --jinja 4.58 tok/s; PrismML llama.cpp --jinja 3.16 tok/s. Ratios: 4.33× over ik_llama.cpp, 6.10× over PrismML. A second Ice Lake box (2026-11-12) showed 16.99 tok/s vs 4.01 and 2.72 (4.17× and 5.85×). On AMD EPYC 9354P (Zen 4, 8 vCPU / 16 GB): 21.10 tok/s vs 7.74 (ik) and 3.83 (PrismML) — 2.77× and 5.46×. Zen 5 EPYC 9275F (8 vCPU / 16 GB): 35–36 tok/s, 3.0× ik, 4.1× PrismML. Long-context decode at 16k context: Ice Lake 7.98 tok/s, Zen 4 13.4 tok/s. Agent-loop steps (16k context, 64-token answers): Ice Lake 55 s/step vs 314 s (ik, 5.8×), Zen 4 63 s vs 274 s (4.4×). Prompt reading throughput also leads: 41.6 vs 20.3 tok/s (Ice Lake 16k), 34.5 vs 22.6 (Zen 4 16k).
- Ice Lake 8 vCPU/8 GB: 19.67 tok/s (spec) vs 4.58 (ik) vs 3.16 (PrismML) — 4.33× / 6.10×
- Second Ice Lake box: 16.99 vs 4.01 vs 2.72 — 4.17× / 5.85×
- Zen 4 EPYC 9354P: 21.10 vs 7.74 vs 3.83 — 2.77× / 5.46×
- Zen 5 EPYC 9275F: 35–36 tok/s — 3.0× / 4.1×
- 16k context: Ice Lake 7.98, Zen 4 13.4 tok/s
- Agent steps (16k): Ice Lake 55 s vs 314 s (5.8×), Zen 4 63 s vs 274 s (4.4×)
Quality and Accuracy Claims
The README reports no measurable quality loss from the speed-ups. GSM8K-40: 39/40 correct both with and without the latest speed-ups (p = 1.0). Coding pass@1 on 160 HumanEval + MBPP problems: 83.1% vs 83.8% (earlier build). WikiText-2 perplexity: 7.5702 vs 7.5699 (±0.21 uncertainty). The ternary model itself is PrismML's Bonsai-2-27B; the README links to PrismML's model card for comparison with full-precision. ik_llama.cpp's greedy outputs differ (different arithmetic after repack) but its WikiText-2 perplexity is 7.5681 vs openset-llm's 7.5702 — both considered correct. Multi-stream outputs (--multi 4) are byte-identical to single-request runs.
- GSM8K-40: 39/40 with and without speed-ups (p = 1.0)
- Coding pass@1: 83.1% vs 83.8% (160 problems)
- WikiText-2 perplexity: 7.5702 vs 7.5699 (±0.21)
- ik_llama.cpp perplexity 7.5681 — both correct per README
- --multi 4 streams: byte-identical to solo requests
Limits and Open Questions
The README lists several limits. The fast path is x86-64 AVX-512 only; ARM64 and Apple Silicon are unsupported or untested. Intel Core 12th/13th/14th gen lack AVX-512 and run the slow fallback. The model is fixed to PrismML's ternary Bonsai-2-27B; other models are not yet supported. The chat WebUI is experimental and the first reply has high latency. Speculative decoding turns off automatically below 12 GB RAM (per long-context table notes). Mainline llama.cpp v1.0.0 was spot-checked on one box: plain decode 3.06 tok/s short prompt, but long prompt or default 4 slots paged from disk and did not finish; its speculative decoding with a 1.37 GB draft head ran at 0.17 tok/s (model + head exceed 8 GB). The README notes cloud host variance affects absolute speeds but not ratios. Inkling 2 Mini (26.4B, 1-bit UD-IQ1_S, 7.76 GB) on the same box decoded at 7.40 tok/s vs openset-llm's 20.07 tok/s (2.8×), with similar GSM8K/coding scores but 6× more tokens per answer due to forced reasoning.
- x86-64 AVX-512 only; ARM64 builds but untested; Apple Silicon unsupported
- Intel Core 12th gen+ fall back to slow kernel
- Single model (Bonsai-2-27B ternary); no model zoo yet
- WebUI experimental; first-reply latency high
- Speculative decoding disabled < 12 GB RAM
- Mainline llama.cpp v1.0.0 pages from disk on 8 GB with this model
Conclusion
openset-llm demonstrates that a 27B ternary model can decode at 17–20 tokens per second on an 8-core, 8 GB AVX-512 CPU with no GPU, per the project's own measurements. The OpenAI-compatible server makes it a drop-in replacement for API-based workflows, and the --multi mode adds concurrent request handling. Hardware support is narrow: Ice Lake Xeon or newer, Zen 4/5 EPYC or Ryzen 7000/9000. Intel Core 12th gen and later are excluded from the fast path. The 5.95 GB model file fits in 8 GB system RAM alongside runtime weights and KV cache, which is the project's central claim — running a model size that normally needs 16–32 GB or a GPU. All speed and quality numbers here are attributed to the README; independent reproduction on local hardware would be the next step for any team considering adoption.
Source
Project page
Similar Projects
Discover other similar projects and AI models.
Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Zero-GPU CPU inference for 26B-284B MoE models (Inkling-2-Mini Monza-RS v3, Qwen3.8 176.5B, DeepSeek-V4 284B, Nemotron-30B) + AVX-512 Fusion & RouteCrack 2.0.