Skip to content
/ airelien.dev
Go back
Aurélien AMSELLEM

Lucebox on Olares One — Episode 1: 134 t/s on RTX 3090, what about my rig?

You're scrolling r/LocalLLaMA, you see a post claiming 134 t/s on Qwen3.6-27B with an RTX 3090 thanks to Lucebox. Of course you want to try it on your Olares One. Spoiler: it'll take 12 hours of compile time and 6 Docker builds. Episode 1.

You’re scrolling r/LocalLLaMA (the subreddit for people who run AI models at home) on a Sunday evening, looking at Qwen3.6-27B benches, and this catches your eye:

“Lucebox: 134.78 t/s @ 128K context on a single RTX 3090, with DFlash speculative decoding.”

134 t/s on an RTX 3090, with a 128K-token context. A few landmarks to read that. A token is a piece of a word (about three quarters of an English word on average), and t/s means tokens per second: how fast the model writes its answer. The context is how many tokens the model keeps in view during the conversation; 128K is roughly a 300-page book. And Qwen3.6-27B is a model with 27 billion parameters.

Meanwhile, on my Olares One with its RTX 5090M, the best I get with Genesis + TurboQuant K8V4 is 38 t/s. On bandwidth, the 5090M vs 3090 ratio is +30% in the 5090M’s favor. So if Lucebox holds its claim, I should be flying at 170-200 t/s on consumer Blackwell.

Of course I want to test it, and that’s how this saga starts.

What is Lucebox?

Lucebox is a fork of llama.cpp tuned to the bone for consumer hardware. llama.cpp is the C++ inference engine that runs models in the GGUF format, and it’s excellent when there’s a single user. A fork is a copy of a project that adds its own features before the main project merges them (or instead of it). Lucebox is a research project, MIT-licensed.

To see what it brings, you first need to know what speculative decoding is. A big model writes one token at a time, and each token costs a full pass through all its parameters. With speculative decoding, a small fast model, the “drafter”, guesses the next few tokens, then the big model checks them all in a single pass and keeps the ones it agrees with. The final text is the same, but it takes fewer expensive steps to write it. The share of guessed tokens the big model keeps is the acceptance rate: the higher it is, the faster things go.

Lucebox combines three techniques:

It’s all packaged in a custom fork, Luce-Org/llama.cpp@luce-dflash, with specialized CUDA kernels for tree-mode operations. CUDA is NVIDIA’s GPU programming platform, and a kernel is a function that runs on the GPU.

Everything is open source, it compiles from source, and there’s a README.

The catch

There’s no public Docker image, no prebuilt binary and no nightly build (a dated binary compiled automatically every night).

Their documented target is Ampere (RTX 3090, A100) and Ada Lovelace (RTX 4090). Nobody has ever tested it on consumer Blackwell (sm_120), or on Kubernetes at all. sm_120 is the “compute capability” of consumer Blackwell cards, the architecture number you compile CUDA kernels for. Datacenter Blackwell is sm_100, and a kernel built only for sm_100 won’t run on my card.

And I want to run it on my Olares One. It’s a mini-PC running Olares, a self-hosted OS built on Kubernetes, with:

Those 24 GB are the VRAM, the GPU’s own memory: small but very fast. System RAM (96 GB on this machine) is much larger, but much slower for the GPU, which reaches it over the PCIe bus. A model that fits entirely in VRAM runs fast, hence the goal of fitting the model, the drafter and the KV cache into those 24 GB.

HAMi is the layer that shares the GPU between pods and limits what each one is allowed to use. It does that by intercepting every program’s CUDA calls, through a library (libvgpu.so) that sits between the program and the NVIDIA driver. Keep that in mind, it will matter later.

That makes three unknowns stacked on top of each other:

  1. Will the Lucebox CUDA kernels compile for sm_120?
  2. Will the binary run under HAMi vGPU?
  3. Will performance scale the way the bandwidth suggests?

None of the three has a public answer. The only way to know is to write a Dockerfile and compile.

The plan

I’m going with a classic multi-stage Dockerfile: a first, heavy image with all the build tools, and a second, light one into which only the resulting binaries are copied.

Target: aamsellem/lucebox-qwen36-blackwell:1.0.0 on Docker Hub, an amd64 build for sm_120. Plus a Helm chart (the package format for Kubernetes apps, and so for Olares apps) to deploy on Olares in a few commands.

On paper, that’s 30-40 minutes of compile time and a push. In practice, you’ll see.

Why I’m telling you this

Because nobody has done it on this platform, and the 3 fixes I’m about to discover episode by episode aren’t written down anywhere. By the end, I’ll even hit a bug inside HAMi vGPU itself that crashes not just Lucebox but also any recent llama.cpp and vLLM running async scheduling (vLLM is another inference engine, in Python/CUDA, built to serve many users at once). I’ll fix that bug upstream with a PR: a proposed change sent to the HAMi project on GitHub. But we’re not there yet.

For now, I run my first docker buildx build.

In episode 2: 2h13 of CUDA compile, and an error message that isn’t exactly friendly. Enjoy, and see you next time!


Disclosure — All the benchmarks in this post run on my own Olares One. If the content was useful and you’re considering one, ordering through this referral link gets you $300 off ($4,699 instead of $4,999), stackable with the $300 Black Friday discount starting November 17: $600 off in total ($4,399). I’m mentioning this out of transparency — and yes, incidentally, it helps keep the blog alive (hosting, domain, and the time I spend writing here).

Share this post on:

Comments