Lucebox Engine

The open source inference engine on every Lucebox, tuned for its R9700 and Ryzen AI MAX+, and the models it runs today. Apache 2.0, on GitHub.

Lucebox Mix

QwenDeepSeekKimi
Default

Qwen for speed and DeepSeek V4 for deeper thinking, at once.

Speed Quality 116.7 GBQwen + DeepSeek V4 togetherCloud help: Kimi K3.1 private

DeepSeek V4 Flash

Careful answers for agents, research and long documents.

Speed Quality 101.5 GBR9700 + Strix Halo

Qwen 3.8 27B

The fastest: code, quick answers, agents that call it often.

Speed Quality 15.2 GBR9700, 8 at once

DeepSeek V4.1 Flash

The newest and deepest DeepSeek, the 1017 version, for long documents and agents.

Speed Quality 363.8 GBR9700 + Strix Halo, SSD with 128 GB

Qwen3.8-Flash-Next

Long-context agent coding, with speculative decoding and a fast prefix cache.

Speed Quality 106.3 GBR9700 + Strix Halo, 4 at once

MOSS-Image

Text-to-image model for ComfyUI. On the R9700 it takes turns with the chat model; a chat model on the Strix Halo alone runs beside it.

15 GBR9700ComfyUI

Install any of them from Manage, or load any GGUF you bring. The box runs Ubuntu Server with ROCm and root access, so other open source engines install as on any Linux machine.

Against other engines, on the same box.

Decode tok/s, one user
  1. Qwen 3.8 27BR9700 95.4Lucebox 64.8llama.cpp
  2. Qwen 3.8 Flash-Nextwhole box 81.5Lucebox 53.9Strata
  3. DeepSeek V4.1 Flashwhole box 51.1Lucebox 9.8DwarfStar
Prefill tok/s, 120K prompt
  1. Qwen 3.8 27BR9700 693Lucebox 737llama.cpp
  2. Qwen 3.8 Flash-Nextwhole box 1,621Lucebox 1,362Strata
  3. DeepSeek V4.1 Flashwhole box 635Lucebox 103DwarfStar, weights on the SSD
Image 1024×1024, 8 steps, lower is better
  1. MOSS-ImageR9700 2.74 sLucebox 12.19 sstable-diffusion.cpp, default settings

On a Lucebox Zero 495, one engine at a time; each bar is that engine's fastest launch. Image: from our MOSS-Image post, on another R9700.

Against other machines.

DeepSeek V4 Flash, 284B

1.5× a DGX Spark

One model split across the R9700 and the Ryzen AI MAX+ unified memory. Measured on the Ryzen AI MAX+ 395 build.

Token generation tok/s, higher is better
  1. DGX Spark 35.3
  2. Mac M5 Max 39.35
  3. Lucebox 54
Details

Qwen3.8-27B, image questions

2.4× a DGX Spark

Eight users asking about charts at once, with the same model file, projector and drafter on both machines.

Image answers tok/s, higher is better
  1. Spark, plain 65
  2. Spark, DFlash2 81
  3. Lucebox 195
Details

Decode and prefill per model.

Decode tok/s, one user
  1. Qwen 3.8 27B 227.8
  2. DeepSeek V4 Flash 54
  3. DeepSeek V4.1, 192 GB 49
  4. DeepSeek V4.1, 128 GB 26
Prefill tok/s, one user
  1. Qwen 3.8 27B 945
  2. DeepSeek V4 Flash 788
  3. DeepSeek V4.1, 192 GB ~1,000
  4. DeepSeek V4.1, 128 GB ~120

The best run in each report: decode while writing code, prefill on prompts of 1.4K to 32K tokens. Qwen runs on the R9700, DeepSeek across the R9700 and the Ryzen AI MAX+.

Qwen 3.8 27BDeepSeek V4 FlashDeepSeek V4.1 Flash

Throughput as users are added.

Total throughput tok/s, higher is better
  • Qwen 3.8 27B, code2.8× at 5 users
  • Qwen 3.8 27B, images2.3× at 8 users
  • DeepSeek V4 Flash, text2.0× at 4 users
Total throughput, tok/s, higher is better
Series1 users2 users3 users4 users5 users6 users7 users8 users
Qwen 3.8 27B, code106.6188.8209.4262.1300.9Not measuredNot measuredNot measured
Qwen 3.8 27B, images84Not measuredNot measured170Not measuredNot measuredNot measured195
DeepSeek V4 Flash, text23.835.442.948.4Not measuredNot measuredNot measuredNot measured

Tokens per second across the box, prompt reading included, so one user sits below the decode peaks above. DeepSeek runs on the Ryzen AI MAX+ alone, without its drafter.

Continuous batchingImage questions

Estimate, Qwen 3.8 27B coding agents

10 agents, 3 to 5 developers

Agents pause between turns to run tools and wait for input. If each writes 30% of the day, 10 agents need more than 5 requests at once under 5% of the time, and at 5 each still gets about 60 tok/s. At 2 to 3 agents per developer, that is 3 to 5 developers.

Manage serves up to 8 at once, so a busy moment slows agents instead of queueing them.

Developers per box by agents each runs at once
  1. 1 agent each 10
  2. 2 agents each 5
  3. 3 agents each 3
  4. 4 agents each 2

Cache hit rate on agent sessions.

Qwen 3.8 27B, AgentX coding agent sessions

Up to 92.2% cache hit rate

A coding agent sends its whole conversation again on every turn. The engine keeps each session's state and computes only what changed. Recorded Claude Code sessions replayed with the AgentX benchmark under its submission rules, on an H100 with the same engine. A cache that never misses would reach 95.2%.

The AgentX benchmark
Cache hit rate % of prompt tokens read from cache
  1. 1 agent 92.2%
  2. Most possible 95.2%

Speculative decode and prefill.

Decode

DFlash2

Lossless

Qwen 3.8 27B, one R9700

Code written 6.4× faster

The model writes a token per pass over its weights. DFlash2, a 5-layer drafter, guesses a block of up to 16 and the model checks them all in one pass, keeping only the tokens it would have written. Code is predictable, so most of each block is kept; prose keeps less.

Token generation tok/s, higher is better

Up to 227.8 tok/s on a single code request.

Token generation, tok/s, higher is better
TaskPlain decodingDFlash2Speed-up
Code, HumanEval32.3208.16.4×
Math, decode32.3133.04.1×
End to end, code + prefill30.7156.25.1×

Prefill

PFlash v2

Lossy

Qwen 3.8 27B, one R9700

The first token, 4.7× sooner

On long prompts most of the wait is the model reading them. PFlash has a small drafter pick the parts worth reading, so the model reads about a quarter of the prompt, and the gain grows with its length.

3.7×
sooner on average, six long-context sets
92 / 124
answers right, against 94 reading it all
Time to first token median, lower is better
Time to first token, median, lower is better
PromptFull prefillPFlash v2Speed-up
16K tokens, NoLiMa15.2 s15.1 s1.0×, read whole
32K tokens, Document QA29.8 s9.6 s3.1×
82K–98K, CodeDebug2 min 21 s29.8 s4.7×
128K tokens, LongCodeQA4 min 11 s43.8 s5.7×

Engine optimizations.

Tool prefix cache

Prefill

Reuses the saved tool definitions on every agent turn.

Report

KVFlash

Memory

Pages cold KV to host RAM, bit‑exact, for long context on one card.

Report

Three-tier experts

Memory

Places experts in VRAM, unified memory or on the SSD by use.

Report

Two-processor split

Decode

Runs one model on the R9700 and the Ryzen AI MAX+ at once.

Report

Continuous batching

Serving

Paged attention and one scheduler for many requests at once.

Report

Layered image prefill

Serving

Reads an image prompt a few layers at a time, so other users keep writing.

Report

One big model, or two at once.

Prefill at 32K tok/s
  1. Chip alone ~340
  2. With R9700 ~1,000

3× faster prompt reading on DeepSeek V4.1 Flash.

Decode tok/s
  1. Chip alone ~16
  2. With R9700 ~33

2× faster writing on the same model.

Two models at once % of solo speed
  1. Qwen, 8 users 88%
  2. DeepSeek, 4 users 99%

Each keeps its speed while the other serves: own chip, own memory.

Chip alone is Framework's published run on the same 192 GB Ryzen AI MAX+ PRO 495, with its own engine and quantization.

DeepSeek V4.1 FlashTwo models at once