Six weeks ago I wrote a very long post about chasing a YouTube promise of 200 tokens per second on my M5 Max. The short version: I never saw 200, but Qwen3.8 27B on lithos-metal ran about 6× faster than on Ollama, and that made the “careful but slow” model fast enough to be my game agent’s brain.

Then another video showed up in my feed: “OMLX + Splash: Run MLX LLMs 5x Faster on a Mac”. Same genre of title, same model family, same laptop. So I did the same thing again. This time it ended with three findings instead of one: a challenger that is genuinely good at one thing, an update to lithos I had been sitting on, and a closer look at the caching I hand-waved last time, which turned out to be where my agent actually spends its time.

The challenger: Splash

Splash is an open-source inference engine from Inco AI, built specifically for Qwen3.6 35B-A3B and Qwen3.8 27B on Apple Silicon. Like lithos, it gets past the memory-bandwidth ceiling with speculative decoding: a small draft model (theirs is called DFlash2) guesses several tokens ahead, and the big model checks them all in one pass. It also splits a bit of the feed-forward work onto the Neural Engine, which I had not seen an engine do before.

The video is really about oMLX, a model server with a nice Mac app, which since 0.7.1 can hand Qwen3.8/3.6 models to Splash as an “external engine”. The 5× is Splash compared with oMLX’s normal MLX path. That is a fair claim: in my last post, plain MLX ran Qwen3.8 at about 21 tokens/s, and anything with a decent draft model should leave that far behind. But it is not the comparison I care about. I already left plain MLX. The question for me is Splash against lithos, on the same model.

So I skipped oMLX and ran Splash directly, serving the same nvidia/Qwen3.8-27B-NVFP4 checkpoint lithos uses:

brew install incoai/tap/splash
splash serve --model nvidia/Qwen3.8-27B-NVFP4 --port 8199 \
  --max-context 65536 --language-only --no-webui

It downloads its draft model on first start (3.6 GB), then spends about a minute measuring the machine: decode step costs per batch size, and a calibration of how much work to give the Neural Engine. Then it says Ready.

I did it again

Last time, the first item in “everything that went wrong” was my own agent using the GPU while I benchmarked. You would think I would remember.

My first Splash run came in at 14 to 16 tokens/s. Before writing anything rude about Splash, I looked at the lithos log: the game agent was in the middle of a tick, pushing 15,000-token prompts through lithos on the same chip. Splash’s own log made it obvious once I knew where to look. It was accepting four tokens per draft round, which is healthy, but each round took about 250 ms, which is what a GPU shared with another 27B model looks like.

So, same as last time: pause the agent, wait for lithos to go quiet, measure each engine with the other one idle. Both stayed loaded in memory; only one worked at a time.

Splash vs. lithos

Same three prompts for both: a short code request, a short prose request, and a 15,500-token log to summarize. Three runs each, temperature 0, nothing else on the GPU, macOS power mode on Automatic.

  lithos (Oct pin) Splash 1.7.3
code 56 tok/s 34 tok/s
prose 31 tok/s 32 tok/s
15.5K-token prompt, writing 28 tok/s 52 tok/s
15.5K-token prompt, first token (new prompt) 50.7 s 44.6 s
same 15.5K prompt, again ~40 s every time 0.1 s

Splash loses on short code, ties on prose, and wins everything that involves a long prompt. Its draft model is particularly good at long context: it accepted about 7 tokens per round on the log summary, against 4 on the short prompts. And it reads a new prompt about 15% faster.

The last row is the one that made me sit up. Splash has a proper prefix cache: send the same long prompt twice and the second one starts writing in a tenth of a second. lithos re-read all 15,500 tokens every time. I knew why, from last time: lithos only saves cache checkpoints at message boundaries, and my test prompt is a single giant user message. My conclusion back then was “my agent’s prompts are all message boundaries, so this is fine”. This time I decided to check that instead of believing it. More on that below.

Updating lithos

lithos is pinned in my setup to a commit of main from October 12, because main is not a release. Upstream had four newer commits, all from one pull request: measured kernel settings for single-request decode on the 40-core M5 Max. My chip, exactly. So I updated, rebuilt and re-ran:

  lithos, Oct 12 pin lithos, Oct 21 main
code 56 tok/s 96 tok/s
prose 31 tok/s 47 tok/s
15.5K-token prompt, writing 28 tok/s 42 tok/s (runs: 51, 42, 21)
15.5K-token prompt, first token (new prompt) 50.7 s 74 s

I have to be honest about this table, because last time I promised myself I would be. The “before” column was measured while Splash was also loaded in memory (idle), and the “after” column after I had uninstalled it. That is not a clean A/B. My October post measured the same pinned commit at 82 to 88 tokens/s on code in the same power mode, with a different code prompt, which is a lot closer to the 96 I got today than to 56. So the honest reading is: the update probably helps short decode by something like 10%, my “before” number was dragged down by something, and I do not yet know what. The slower first token on the new long prompt also coincided with lithos compiling its new kernel recipes in the log, so I would not read much into it either.

What did hold up: with the update, lithos is clearly ahead of Splash on short prompts, which is most of what a chat does, and behind it on long ones, which is most of what my agent does. So I kept lithos and looked at the long-prompt side.

The cache, properly this time

Here is the question I had skipped: what does lithos’s prefix cache actually save, on what shape of prompt?

A prefix cache keeps the model’s internal state after reading the start of a prompt. If the next request starts with exactly the same tokens, the engine restores that state and only reads what is new. Agents are perfect for this: every turn re-sends the system prompt, the tool definitions and the whole conversation so far, plus a little bit of new stuff at the end.

I wrote a small probe: a 15,000-token system prompt, then a question, sent in different ways, while reading cached_prompt_tokens from lithos’s log after each request.

request prompt cached wait
system + question (first time) 15,355 0 26 s
exactly the same again 15,355 15,336 0.3 s
same system, different question 15,355 15,336 0.3 s
previous conversation + a new turn 15,380 15,336 0.6 s

So it works. The same test without a system prompt cached nothing, in both streaming and non-streaming mode. That is why my benchmark missed every time: it never sends a system message.

Then the more interesting test, which looks like a real agent: a short system prompt, then three turns that each add a big chunk (think: a file the agent just read).

turn prompt cached
1 17,107 0
2 34,178 0
3 51,249 17,114

Turn 2 reused nothing. Turn 3 reused exactly turn 1. The pattern: lithos saves a checkpoint at the start of the last user message of each request, and the next request can reuse it. So the cache is always one turn behind. Every turn re-reads the previous turn plus the new one. If the previous turn was a 20,000-token file, you read that file twice.

That matches what I see in my agent’s real traffic. Out of the last 1,900 requests in the log:

  • 95% hit the cache, typically restoring about 45,000 tokens. My October post said 12,000 per turn; the agent’s conversations have grown since.
  • But the hits still wait a median 7.5 seconds for the first token, and 29 seconds at the 90th percentile. That is the one-turn lag: re-reading the last turn’s tool output.
  • The 5% that miss wait about 48 seconds each.
  • And the disk cache I so proudly configured in October has never once served a hit. Every single restore came from memory.

The prompts themselves are fine. A 95% hit rate on 45,000-token prefixes means opencode keeps the start of each prompt stable, which is the part that is up to the harness. What is left is how lithos places its checkpoints, and that is up to lithos.

What I changed

Two flags, both from October’s setup:

lithos-metal serve --model nvidia/Qwen3.8-27B-NVFP4 \
  --served-model-name local-brain --max-context 65536 \
  --host 127.0.0.1 --port 8189 \
  --model-ttl 3600 \
  --prefix-cache-dir ~/Library/Caches/lithos-prefix \
  --prefix-cache-disk-size 64G
  • --prefix-cache-disk-size 64G (was 16G). The cache directory was sitting at exactly 16 GB, evicting old entries as fast as it wrote new ones. I have 3 TB free; this cost me nothing.
  • --model-ttl 3600 (was 900). After 15 idle minutes lithos unloaded the model, and the in-memory cache, which is the only one that ever hit, went with it, so any gap of more than 15 minutes between agent ticks started from scratch. With 128 GB of memory I can afford to keep 16 GB resident for an hour.

Neither flag fixes the one-turn lag. I tried to fix it from the outside first: after every answer, my little queueing service would re-send the same request plus a throwaway user message, asking for a couple of tokens, so lithos would checkpoint the end of the conversation while the agent was busy running tools. It did not work. On a four-turn test with tool calls, the last turn restored 11,025 tokens with the warm-ups and 11,778 without, and each warm-up cost 25 to 35 seconds of GPU. My best guess is Qwen’s chat template: it writes earlier assistant turns differently once a newer user message exists, so the state I was warming never matched what the agent sent next.

lithos’s design notes explain the rest: a checkpoint is only taken at a boundary that leaves at least one prompt token still to read, so the end of a prompt never qualifies. But the boundary just before the assistant’s “your turn” tokens does qualify, and it is exactly where the next agent request picks up. Splash and Ollama both effectively reuse that point. It feels like a small change with a big payoff for agents, so that is what I am suggesting upstream.

What I took away from it, again

“5× faster” is always “5× faster than something”. The Splash claim is true against plain MLX. Against an engine that already does speculative decoding, it is a trade: slower on short code, faster on long context, and a much better cache.

I keep benchmarking the wrong shape of prompt. Last time my long-prompt test was a single giant message, which made lithos look worse than it is for my agent. This time it also had no system prompt, which made lithos’s cache look broken when it is not. The real traffic log answered in five minutes what my synthetic benchmark got wrong for two posts.

Read the cache numbers, not just the speed numbers. My agent’s slowest moments were never about tokens per second. They were seconds and minutes spent re-reading things the engine had already read. The two config changes above cost nothing, and the remaining fix is a checkpoint in the right place, not a faster kernel.


This post was written with the help of AI (Claude by Anthropic).