Hi there.
At the end of episode 7, Basalt beat Strata on the Olares One, with two flaws: a tool grammar that damaged some arguments, and a parser that cut others short. Rather than wait, I forked the project. It’s called anaelith (anae + lith, stone, a nod to basalt) and it’s on GitHub: aamsellem/anaelith.
The fork’s rule: a change only goes in if it gains something measurable on the Olares One. Spoiler: most of my ideas gained nothing, and I show you those too.
Quick recap for newcomers
Qwen3.8-Flash-Next is a MoE of about 180 billion parameters: for each token, only 10 “experts” out of 512 per layer do the work. Strata, then Basalt, fit it on a 24 GB GPU: every expert lives in RAM, the most requested ones are copied into VRAM, and the CPU computes the missing ones while the GPU does the rest (episode 1).
Tool calls, right twice as often
The test that hurts: an agent must edit a file that itself contains tool-call markup, for example replace <parameter=limit>40</parameter> with 25. That’s everyday work for a coding agent that touches templates or parsers.
Two problems in Basalt:
- The parser (the code that turns the model’s text into a structured call) cuts the value at the first
</parameter>it meets, even when it is part of the text to edit. The model, for its part, often leaves out the value’s own closing tag and goes straight on: the parser cannot guess. - The grammar (constrained decoding that forces well-formed output) simply forbids
</parameter>inside a value. The model then has to write a damaged tag,</parameter=>or</parameter?.
anaelith’s fix follows the parameters a value quotes: the tag that closes a quoted parameter belongs to the value, and the call’s structure decides where the value ends. Nothing is added to the model’s text or changed in it: the rule only decides which closing tag ends the value.
To compare without the noise of a model that never answers the same way twice, I recorded 40 sequences (read two files, then edit the line and run the tests) and replayed them through each parser:
| sequences right, of 40 | |
|---|---|
| Basalt’s parser, no grammar | 15 |
| anaelith’s parser, no grammar | 27 |
| anaelith’s parser and grammar | 30 |
What’s left comes from the model itself: it makes only one of the two calls asked for. In the app, on 40 new live sequences, 31 are right; 8 of the 9 failures are that case. A bonus of the repaired grammar: response_format requests with a JSON schema work again.
10 W less on the CPU
While generating, Basalt’s CPU threads wait for the GPU about two thirds of the time, spinning at full speed. The Core Ultra 9 275HX has instructions made for waiting in a light sleep (UMWAIT, TPAUSE). With --exp umwait=2, a waiting thread watches the word where the GPU publishes the next job and sleeps until it changes:
| CPU | GPU | GPU clock | tok/s | |
|---|---|---|---|---|
| busy wait (Basalt) | 61.6 W | 137.3 W | 1,930 MHz | 285.5 |
| threads in light sleep | 52.3 W | 142.4 W | 1,981 MHz | 289.0 |
The processor and the GPU share the same cooler: the GPU takes back about half the saved watts and clocks a bit higher. The speed gain is small (2 to 2.7% after the first repetition), but the machine runs cooler.
What gained nothing
This is the longest part, and the most instructive.
- Splitting experts between VRAM and CPU better (ranking the swaps across all layers at once): 18% fewer experts computed by the CPU, same speed.
- Keeping all of layer 0 in VRAM, the layer where the GPU waits for the CPU the most: the wait disappears, the speed doesn’t move (166.2 → 166.7 t/s).
- 2 MB memory pages under the experts in RAM: under 1%.
- Threads on the efficient cores only: same speed, 3.7 W more.
- Predicting the next layer’s experts to bring them up early: no better than how often they show up.
- Locking the GPU clock: 291.6 t/s at 2,150 MHz, 283.0 at 2,000 MHz, against 289.7 when the driver decides.
The conclusion of this series: the CPU is not what limits speed.
The real ceiling: the GPU’s clock
The stage profile (--profile) shows that the heaviest stage is computing the experts the GPU keeps in VRAM: 5.5 ms of 16.8 ms per decode window in conversation. So I set out to rewrite that kernel, and measured first.
Locking the clock at different values, the time of the compute chain (36 experts, 71 MB of weights) follows the clock exactly: 157 µs at 1.48 GHz, 121 at 1.96, 100 at 2.29, 97 at 2.56. And a kernel that only reads the same 71 MB reaches 840 GB/s at 2.0 GHz, where the chain reads 586. So memory is not the limit. Compute is, at the clock the heat allows: the Olares One’s GPU averages 2.0 GHz out of 3.09 under sustained generation, at 86 °C.
I still tried six variants of the kernel, all checked bit-identical: more blocks per core, the decode table in global memory, activations in shared memory, prefetching the next rows, loops not unrolled… Result: from 3% faster to 20% slower depending on the format. None is kept; everything is documented in the gu-kernel-builds branch.
An app that works with Olares Router
Olares 1.12.7 introduces Router, the OS’s AI gateway: Lares and the other apps go through it to call a model. Router doesn’t see just any app: it needs a shared app with Olares’s Model Console in front of the engine. The console downloads the model, publishes its card (context, capabilities, reasoning levels) and relays the API.
I rebuilt the app on the pattern of the official Strata apps. It is now called Anaelith Qwen38 Flash Next One (version 1.2.2 on my market). Router lists it, it becomes its default-chat model, and other apps call it without a key. You can even change the engine’s arguments from Router: the engine restarts with the new settings in about thirty seconds.
Measured in the app, on the same bench as episode 7:
| Measure | 1.0.0 (Basalt 0.3.3) | 1.2.1 (anaelith) |
|---|---|---|
| Decode, sampled | 152.8 t/s | 177.1 t/s (166-187) |
| Decode, greedy | 172.2 t/s | 180.0 t/s (169-199) |
| 36K prompt read | 2,473 t/s | ~3,950 t/s |
| Decode at 36K of context | 132.3 t/s | 185-231 t/s |
| Through Router | — | 171.9 t/s |
To be honest: most of this gain comes from Basalt 0.4.0 and the int8 KV cache. anaelith mainly brings the tool calls, constrained JSON, the saved watts and the Router integration.
Bonus: vision
Qwen3.8-Flash-Next also reads images, and Basalt has a --vision dynamic mode: the image encoder waits in RAM and only borrows room in the GPU’s expert cache while it reads an image. Tested in the app, through Router: I give it the app’s own card image and ask what it shows. Answer in 1.1 s, no mistakes: “177 t/s”, “Anaelith Qwen38 Flash Next One”, “128K”.
And on text, vision costs almost nothing: 230.7 t/s with it, 233.6 without, over 8 runs each in a balanced order (on, off, off, on), a gap within measurement noise.
So it’s on by default since version 1.2.2 of the app, and Router lists the model with vision. If you upgrade from 1.2.1, the saved model card keeps the old settings: add --vision dynamic to the engine arguments, in Router (the model card’s Edit button) or in Model Console.
The lesson of this episode
- Measure before rewriting: I set out to optimize a “memory-bound” kernel that turned out to be clock-bound.
- On a compact machine, heat decides: every watt saved on the CPU goes back to the GPU.
- To compare two parsers, replay the same recorded outputs. Two live tests gave the same score, while wrong edits had dropped from 13 to 1.
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).