Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Lithos Metal claims 200 tokens per second for Qwen 3.8 27B on a Mac M5 Max, but that is a peak figure with no stated context and the engine's own published numbers sit below it. The readme projects 168 tokens per second at short context and 127 at 32K, while a measured full round implies roughly 139 under the six-token assumption. The mega kernel and D-Spark mechanisms are plausible, but with no ablation isolating them on Apple hardware, the 200 figure is a headline, not a measured rate.
Key points
Memory bandwidth caps plain decoding of the 4-bit 27B model at about 38 tokens per second.
The blog claims Lithos is about 1.8 to 2 times the speed of MLX and Ollama at short contexts, but labels these target compute projections.
A measured 43.188 ms round implies about 139 tokens per second under the six-token assumption.
All 512 generated tokens across four short prompts match the BF16 reference output.
Prefill on a 30K-token prompt takes 53.3 seconds on a 40-core M5 Max, down from 71.3.
Tools mentioned
Techniques
- Speculative decoding
- Mega kernel fusion
- D-Spark parallel drafting with a low-rank Markov head
- Exact speculative sampling
- KV cache and recurrent state rewind
- Gated delta net recurrent layers
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
By our arithmetic, plain decoding of a 27 billion parameter model on an M5 Max should not go faster than about 38 tokens a second. A new engine called lithos metal claims more than 200 tokens
a second on the same chip. If you own a Mac, is that real? I'll show what makes it fast, then sort its numbers into measured and projected. Start with the weights, which are the numbers the model
learned. The 4-bit version of the 27 billion Quinn 3.8 is about 16 to 17 GB. Apple says the M5 Max moves up to 614 gigabytes per second between memory and chip. Apple's research team also says
that after the first token, memory bandwidth limits generation, not compute. The MLX build of the 4-bit model is 16.1 GB. So one full read of the weights at 614 GB per second takes
about 26 milliseconds. If each token needs its own read, that's about 38 tokens a second. This is our arithmetic not a lithos number. The 614 GB per second is a peak. So real speed is
lower. The sum also leaves out the key value cache. That cache is the model's memory of the prompt and it grows with the prompt. There are two ways to speed up decoding. You can remove the idle
time around each read which gets you closer to the ceiling. Or you can get more than one token from each read which is the only way past it. A mega kernel does the first. A drafting method called
D-Spark does the second. Start with idle time. Stanford's Hazy Research tested VLLM and SG Lang, two serving engines on an H100 with a Llama 1 billion model. Those engines split one pass through the
model into around 100 small GPU programs called kernels. Each kernel has a setup and a tear down and the GPU weights in between. Both engines used at most about 50% of the memory bandwidth. One fused
mega kernel used 78%. Hazy Research reported about 2.5 times the speed of V LLM and over 1.5 times the speed of SG Lang. That's an H100 result, not an Apple result. Lithos brings the idea to
Metal, Apple's GPU programming interface. In its design, a worker is a thread group, a team of GPU threads that runs a bounded sequence of tasks in order. A task can be a tile of a matrix,
a partition of attention, or a slice of a running memory called recurrent state. For example, a matrix tile is a small block of a weight matrix, and a task works on that block. When one worker
needs another worker's result, it follows a progress protocol which tells it when the result is ready. The design keeps the mixer work inside one running program. Quen 3.8 27 billion has 64
layers. 48 use gated delta net and 16 use full attention. Gated delta net is a layer type that keeps a running memory. It doesn't look back at every earlier token. The pattern repeats 16 times.
Each time three gated delta net layers come first, then one attention layer. Each layer has a mixer of one of those two types, then a feed forward block. In a gated delta layer, the model keeps a
running memory called the recurrent state. It's a 32-bit matrix with a key side and a value side. A normal kernel reads and writes the full state for every token. In lithos, a task owns a
slice of the matrix columns and keeps it in the chip's fast memory across a block of input. Full attention layers get the same treatment. Each worker keeps small running totals of the attention scores
in 32-bit numbers. So the engine does not write the full table of scores to memory. That means fewer reads and writes of memory for the same answer. You may see it described as a whole
layer in one program. That isn't exact. LITOS fuses only the mixer in each layer which is the gated delta net part or the attention part. The design doc says the feed forward block stays a separate
kernel. This helps with idle gaps but it doesn't change the read itself. The weights still come from memory once per pass. A mega kernel can raise the share of the 614 GB per second that the engine
uses. But it can't exceed 614 GB per second. So by itself it can only bring you closer to the 38 tokens a second ceiling. The sources don't report how close lithos gets in real use. To go
past 38 tokens a second, the engine must get several tokens from one read. Speculative decoding does that. A small drafter guesses a block of tokens. Then the big model checks all of them in one
pass over its weights. Think of the weights as a bus route that the bus must drive end to end on every trip. Plain decoding sends the bus with one rider. Speculative decoding sends it with
several riders on the same trip. Each rider is one token. The first rider is already confirmed and the others are guesses. The picture breaks here. If one guess is wrong, the guesses after it
don't count. DSpark comes from Deep Seek AI and Peing University in a paper dated July 6th, 2026. The drafter reads internal values from the big model and guesses a block of tokens at the same
time. Guessing in parallel has a weakness because later guesses can't see earlier ones. A small lowrank mark of head lets each guess see the one before it. Without it, the share of guesses the
big model accepts falls toward the end of the block. The paper also describes a confidence head, which predicts how far a block is worth checking. In DeepSeek version 4 production serving, the paper
reports 60 to 85% faster per user generation. The baseline is a method called MTP1, and the servers handle the same total load. That's a data center result. In lios metal, the drafter is
small. It has five layers and takes 1.136 GB in NVFP4, a 4-bit format. That's about 7% of the big model. On a 40 core M5 max at a 128 token context, the draft stage took 4.392 milliseconds.
That's far less than the 26 milliseconds derived above for one read of the big weights. By default, the engine takes up to seven guest tokens plus one anchor. The anchor is the last token the engine
has already accepted. Each token becomes one row of numbers. So the big model checks eight rows in one pass. It reads the weights once for all eight rows. The extra rows add compute, but they don't
add another read of the weights. After the pass, the engine accepts the first run of correct guesses. In greedy mode, which always takes the most likely token, it accepts a guess only if it
equals the big model's token. In sampled mode, it accepts a guess with probability P divided by Q capped at one. Here P is the big model's probability for that token and Q is the
drafters. Then it picks a correction token or a bonus token if every guess was right. On October 7th, a merged poll request added exact speculative sampling for when the model picks tokens at
random. Then comes the rewind. Three kinds of state must all match the accepted tokens. They are the key value cache, the short history that a small filter layer keeps, and the recurrent
state. So the engine rewinds that state to match. The readme speed figures leave out this rewind work. Now use the readme's assumption of six accepted tokens per pass. Dividing six tokens by
26 milliseconds gives about 230 tokens a second. That's an upper limit because it ignores drafting rewind and real bandwidth. To reach 200 tokens a second with six tokens, each pass must take
about 30 milliseconds. At peak bandwidth, the read plus the draft already use about 30 milliseconds. LIOS does publish one measured round on a 40 core M5 max at a 128 token context. A
complete round took 43.188 milliseconds. Six accepted tokens in 43 milliseconds is about 139 tokens a second. A round can yield at most eight tokens and that gives about 185 a
second. Both rates are derived and 200 would need a shorter round or another setting. The model card doesn't say how many tokens that round accepted. The same model card reports one more
measured result. All 512 generated tokens across four short prompts match the BF16 reference, a 16- bit number format. So on these four prompts, the faster method gave the same tokens. This
says nothing about speed or about other prompts. The readme also says a default fusion step changes the rounding of 16- bit numbers. Now sort the numbers by what each one proves. The 168 tokens a
second at a 128 token context and the 27 at 32K are projections on a 40 core M5 max with 48 GB. They also leave out drafting acceptance processing and rewind. They assume six accepted tokens
per eight row pass. In the readme's own words, they are not measured endto-end generation rates or a direct endto-end speedup comparison. The 200 plus figure is a headline. The blog intro says it
and a summary of the announcement post uses the same number with the word peak. The blog gives no context length, prompt or acceptance rate. So the gap between 200 and the readme's 168. The blog puts
lios metal at about 1.8 to two times MLX and O Lama at short contexts and above two times V LLM metal. It labels these target compute projections which leave out drafting and rewind. The readme adds
that each backend's timer covers different work. If that ratio applied to the 168 figure, MLX would run near 90 tokens a second. That's far above the 38 ceiling for plain decoding. So the
baselines may use other settings or the ratio may apply to another number. The sources don't say which lie those gives no test of each trick alone which is called an ablation. So you can't tell
how much of the gain comes from the mega kernel and how much from DSpark on Apple hardware. The mega kernel numbers come from an H100. The dspark gain comes from data center serving. The memory limit
stays fixed because it's hardware. The software gains come from two things. The engine removes idle gaps and it reuses each weight read across several tokens. Long prompts have a separate cost which
is prefill. Prefill is the time the model needs to read your prompt before the first token. A merged pull request from October 7th reports time to first token on a 40 core M5 Max with 48 GB.
After its changes, a four 4K token prompt takes 6.6 seconds, down from 13.0 seconds. At 17K tokens, it takes 26.9 seconds, down from 39.1 seconds. At 30K, it takes 53.3 seconds, down from 71.3
seconds. A 30K prompt takes about 53 seconds of prefill, and a 32k prompt would take a little longer. Only after that wait does the projected 127 tokens a second apply. A claim that it works at
long context covers decode speed only. The headline applies to one setup. A 40 core M5 Max with 48 gigabytes. The Redmi sorts chips into tiers. The 40 core M5 Max has measured recipes for large coin
models. The M5 Pro has measured kernels for smaller models only. The 32 core M5 Max and the M4 Pro use an unmeasured native fallback with no automatic mega kernel fusion and the tensor accelerator
turned off. lie those published the blog on October 8th 2026. So the repo is days old. The repo has about 68 stars, 15 commits and four forks. It uses the Apache 2.0 license and needs Mac OS 26
or later. It supports one model family plus an experimental 35 billion parameter mixture of experts model and it runs one generation at a time. If you have a 40 core M5 Max with 48 GB and run
the 27 billion Ken 3.8 eight on short prompts, I'd try lithos metal. The sources don't show what speed you will get. It depends on how many guesses the big model accepts, and the sources don't
give that number for this model. So, measure it yourself and compare it with the 38 tokens a second that plane decoding allows. If you use another chip, long prompts, or several
generations at once, wait for more tests. Treat the 200 tokens a second as a peak with no stated context. Treat 168 and 127 as projections and the 1.8 8 to2 times ratio as a claim to check. The
mechanism makes sense. Fewer idle gaps and several tokens per read. The open question is the missing test of each trick alone. How much of the speed up comes from the mega kernel and how much
from dspark on a