GitHub ↗

1bit engine

One engine behind an OpenAI-compatible API, running inside Lemonade: HRX on the Radeon iGPU with our Loom kernels, the XDNA 2 NPU, ZINC for NVIDIA and Apple GPUs, MLX on Apple Silicon.

latest · 2026-09-29Where the engine is going: HRX and the NPU. The engine is heading to AMD's HRX backend, whose kernels we write in Loom, plus the NPU.read the post →
site index
Engine →

What the engine is, what runs where, and who it is built on.

engine
Docs →

Every device, every component, and how to run them.

docs
Blog →

The build log: what moved over, what got faster, what broke.

blog
Benchmarks →

Measured, not projected. Every number with how it was taken.

wiki
1bit serve →

The engine runs inside Lemonade: Lemonade runs 1bit serve as a backend, the way it runs llama-server. 1bit serve…

serve
Lemonade →

The 1bit engine runs inside Lemonade. Lemonade is the server users talk to, with its own catalog, downloads, router and…

lemonade
Weekly releases →

1bit engine is pinned upstream: every backend it builds is a submodule at a fixed commit (thirdparty/), and the bump-…

releases
How we measure →

tools/bench.py measures 1bit serve configurations against each other. It is how the serve numbers in these docs are…

bench
Recipes →

A setting that makes one model faster on one route can make another slower. For example, 1024-token micro-batches speed…

recipes
NPU →

The fast lane runs one whole-layer kernel per decoder layer, plus an lm-head kernel. For each token, the host submits…

npu
HRX →

On Strix Halo, HRX (AMD's ggml-hrx with our Loom kernels) reads Qwen3.8-27B prompts at 335 tok/s and decodes ZAYA1-8B…

hrx
Vulkan (upstream) →

1bit serve --device vulkan runs a llama-server built from upstream llama.cpp (MIT), pinned to its latest release in…

vulkan
Lean (ROCmFP4, ROCmI4) →

1bit serve --lean trades a little accuracy for speed: with a Hadamard-rotated file it reads Qwen3.8-27B prompts at 509…

lean
ZINC →

ZINC (MIT) is a single-binary GGUF engine written in Zig. It has its own kernels for four GPU backends, and serves…

zinc
Apple Silicon →

On macOS, 1bit serve --device mlx serves MLX models. The executor is the server binary of lemon-mlx-engine (fork…

apple
MoE streaming →

The goal: run mixture-of-experts models larger than Strix Halo's 128 GB. Only the experts a token routes to are needed.…

moe-streaming
Laya router →

Laya picks where each request runs: it sorts each conversation into code, prose, short answer or long document (95.5%…

laya
Model registry →

Step 5 of the port: which Hugging Face models this engine can run, kept current every day. Two numbers are reported,…

registry
Architecture gaps →

The registry maps an HF architecture only when a pinned backend's own code accepts it. It is generated from the pinned…

arch-gaps
Windows →

1bit.exe runs on Windows 10 and later (x64): 1bit serve with GGUF models on the CPU (--device cpu, which auto picks)…

windows
ONNX Runtime →

1bit serve --device onnx serves ONNX Runtime GenAI models: a directory with genaiconfig.json, model.onnx and the…

onnx
ComfyUI.cpp →

ComfyUI.cpp runs ComfyUI workflows in C++. It is a port of ComfyUI's workflow engine and of the Stable Diffusion 1.5…

comfyui
Tokenizers →

The engine reads any model's tokenizer.json through Hugging Face tokenizers, the Rust library behind the tokenizers npm…

tokenizers
Linux kernel →

The engine's NPU driver (amdxdna) and GPU driver (amdgpu) come from the kernel, so the kernel is pinned like every…

kernel
Porting map →

This repository is the working 1bit-MONSTER engine, ported without its history. Each step below is one PR (or a short…

PORTING
DwarfStar →

DwarfStar (antirez/ds4, MIT) is a native inference engine written for a few large MoE models: DeepSeek V4 Flash (and…

dwarfstar