Skip to main content
Back

OpenSet Labs Runs a 27B Model at 20 Tok/s Without a GPU

A new C++ inference engine runs a 27B ternary model at 17-20 tokens per second on an 8-core CPU with just 8 GB of RAM, no GPU required.

  • New CPU-only inference engine openset-llm runs a 27B model at 17-20 tok/s on 8 GB RAM.
  • Benchmarks show 4.2x speedup over ik_llama.cpp and 5.9x over PrismML's llama.cpp fork on Ice Lake Xeon.
  • Uses Bonsai-2-27B, a 5.95 GB ternary model, with speculative decoding via a grafted MTP head.
  • Requires x86 CPU with AVX-512 VNNI + VBMI: Intel Ice Lake+, AMD Zen 4+ only.
  • Agent loops run 5.8x faster at 16k context thanks to prompt-prefix resume logic.
  • OpenAI-compatible server, MIT licensed, one-command install, GSM8K and coding pass@1 unchanged.

OpenSet Labs has released openset-llm, an MIT-licensed inference server that runs its supported 27B-parameter model at a reported 17 to 20 decode tokens per second on an 8-vCPU, 8 GB host without a GPU. Its OpenAI-compatible HTTP interface gives developers a local endpoint for chat, extraction, search, and agent workloads on recent server CPUs.

The published performance and quality results come from the project’s maintainers and have not been independently verified. Their benchmark suite compares engines on the same model file, hardware, and prompts, with each engine using its fastest supported configuration.

Project overview
Supported model Bonsai-2-27B
Model size 5.95 GB on disk
API OpenAI-compatible HTTP server at http://127.0.0.1:8080/v1
Optimized hardware x86 CPUs with AVX-512, VNNI, and VBMI
Model support One model
License MIT for the repository code; the linked model has separate terms

A Fourfold Lead on Ice Lake

The headline benchmark uses an 8-vCPU, 8 GB Ice Lake Xeon host. openset-llm reaches a median 19.67 decode tokens per second, compared with 4.58 for ik_llama.cpp using run-time repacking and 3.16 for PrismML’s llama.cpp fork. Decode speed measures token generation after the engine has processed the prompt.

Selected results published by the project
Test openset-llm Comparison Reported ratio
Ice Lake decode 19.67 tok/s ik_llama.cpp: 4.58 tok/s 4.29x
Ice Lake decode 19.67 tok/s PrismML fork: 3.16 tok/s 6.23x
Zen 4 decode 21.10 tok/s ik_llama.cpp 2.77x
Zen 4 decode 21.10 tok/s PrismML fork 5.46x
Zen 4 at 16K context 13.4 tok/s ik_llama.cpp: 5.16 tok/s 2.60x
Ice Lake agent step at 16K 55 seconds ik_llama.cpp: 314 seconds 5.71x
Three inference engines processing the same workload on an Ice Lake CPU host
The repository includes scripts and recordings for reproducing its engine comparisons.

Project-published quality checks produced 39 correct answers on a 40-question GSM8K sample and 83.1% pass@1 across 160 HumanEval and MBPP coding problems. The maintainers report no statistically significant decline from the earlier, slower build, while WikiText-2 perplexity remained effectively unchanged.

Four Optimizations Target One Model

openset-llm patches the PrismML llama.cpp fork to accelerate a ternary model whose weights are constrained to three values. The implementation focuses tightly on Bonsai-2-27B rather than providing a general replacement for llama.cpp.

  1. AVX-512 ternary kernels: Custom kernels exploit the model’s three-value weights during prompt ingestion, known as prefill, and token generation, known as decode.
  2. Speculative decoding: A grafted multi-token-prediction head proposes several candidate tokens, and the main model verifies them together. Accepted candidates reduce the number of full-model passes.
  3. Fused attention: A specialized attention kernel reduces memory movement as the context grows, helping preserve decode speed within the 8 GB memory budget.
  4. Agent-loop resume: When a client resends a previous prompt with a changed suffix, the server reuses work from the common prefix and resumes at the divergence point. The project reports byte-identical replies.

Concurrent serving uses --multi N to advance multiple streams during each pass over the roughly 6 GB of weights. Four short prompts reach 21.96 aggregate tokens per second, or 2.28 times the single-stream throughput. That figure measures total output across all four requests, so each request receives a smaller share.

AVX-512 Draws the Boundary

The optimized path requires x86 processors with AVX-512, VNNI, and VBMI. Supported targets include Intel Xeon Ice Lake or newer and AMD Zen 4 or newer.

Hardware support and expected behavior
Hardware Support Expected behavior
Intel Xeon Ice Lake or newer Optimized Uses the AVX-512 fast path
AMD Zen 4 or newer Optimized Uses the AVX-512 fast path
Intel Core 12th generation and newer Fallback Project reports 4.8 to 5.7 times slower decoding because the required AVX-512 features are unavailable
Apple Silicon Unsupported The maintainers recommend the PrismML Metal build

The default 4,096-token context with speculative decoding leaves roughly 0.2 GB free on an 8 GB host. Longer contexts require the experimental --kv8, --kv6, or --kv5 modes, which compress the KV cache that stores attention state for earlier tokens. The project reports a slight perplexity increase from those compact caches.

From Clone to Local Endpoint

The bundled start script builds the engine, downloads the 5.95 GB model, and launches a browser chat interface and API server on the local machine:

git clone https://github.com/opensetlabs/openset-llm
cd openset-llm
./start
The openset-llm browser chat interface
The default server listens at 127.0.0.1:8080.

Existing OpenAI Python clients can connect by changing the base URL and model name. The documented integration covers the Chat Completions interface:

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:8080/v1",
    api_key="unused",
)

response = client.chat.completions.create(
    model="openset-llm",
    messages=[
        {"role": "user", "content": "Hello"}
    ],
)

print(response.choices[0].message.content)

Applications that depend on other OpenAI endpoints, streaming details, tool-call formats, or provider-specific options should test those features before migration.

A Focused Fit With Concrete Limits

CPU-hosted search and extraction pipelines, coding agents, private local applications, and services without GPU access match the project’s current design. Recurring API costs and data-residency requirements can also make a local endpoint useful.

  • Model choice: Bonsai-2-27B is the only supported model.
  • Hardware choice: The reported gains depend on recent server CPUs with specific AVX-512 extensions.
  • Memory headroom: An 8 GB deployment leaves little room for larger contexts or other processes.
  • Project maturity: The repository had fewer than 200 commits when these results were published.
  • GPU deployments: Teams with suitable accelerators have broader model support and more established inference servers available.

The bench/ directory includes paired prompts, bootstrap confidence intervals, and reproducible scripts. Production evaluations should rerun those tests on the intended CPU, context length, concurrency level, and workload because the published results come from the project itself.