Skip to content

openset-llm 0.1.0

Choose a tag to compare

@0xaron 0xaron released this 25 Nov 17:28
· 58 commits to main since this release
2cca6ca

First public release of openset-llm: fast LLM inference on plain CPUs. No GPU, 8 GB of RAM.

What it does

Runs a 27B model (Qwen3.8-27B as PrismML's ternary Bonsai-2-27B, 5.95 GB) at 17–20 tokens per second on a CPU-only machine with 8 cores and 8 GB of RAM. On the same box, same model and same prompts, that is about 4× ik_llama.cpp and about 6× PrismML's own llama.cpp fork. Method, both benchmark runs and the scripts are in the README.

Install

git clone https://github.com/opensetlabs/openset-llm && cd openset-llm && ./start

The first run builds the engine, downloads the model (~7.3 GB) and opens a chat page. ./serve gives an OpenAI-compatible API at http://127.0.0.1:8080/v1.

Requirements: Linux x86-64 (WSL2 works), a CPU with AVX-512 VNNI + VBMI (Intel Ice Lake or newer Xeon, AMD Zen 4 or newer), 8 GB of RAM, ~15 GB of free disk during install, git, cmake and a C++ compiler.

In this release

  • New AVX-512 kernels for the ternary weights, for generating and for reading prompts
  • Speculative decoding with the model's own multi-token-prediction head
  • A fused attention kernel that keeps long contexts fast
  • Several requests in one pass (./serve --multi N)
  • Agent-loop resume: a resent long prompt with a changed ending continues from where the two diverge
  • ./serve --kv6 / --kv5 (experimental): smaller attention caches for longer context on 8 GB (speculation to 12k / 16k, plain decoding to 32k / 64k)
  • LoRA adapters through ./serve -- --lora <file> (#1, #2)
  • A chat page, a Dockerfile, and the benchmark harness behind every number (bench/)

Known limits

  • One model, Linux x86-64 only. CPUs without AVX-512 get a much slower fallback. No macOS build yet.
  • 17–20 tok/s is on our benchmark prompts; everyday chat questions run slower because speculation gains less on open-ended text.
  • It is a ternary model, not full-precision Qwen. The speed-ups cost nothing measurable on the small quality sets we ran; how ternary compares with full precision is PrismML's result.
  • Measured on cloud VMs (Intel Ice Lake, AMD Zen 4 / Zen 5). Numbers from your own hardware are very welcome: open an issue.

Full list: CHANGELOG.md. Built on PrismML's llama.cpp fork; credits in NOTICE.