Skip to content

cd .. && $ cat patch-or-fork.md

Patch or fork: how to read the bespoke inference engine boom

Why a new inference engine's tokens-per-second number says little until you know whether it changed the kernels, the quantization or the model's behaviour, with small patch sets, mainstream tuning and a Lambda cost experiment as the counterweight.

---
commit
0f7a58a
date
tags
[ llm , local-models , ollama , performance , hardware ]
stats
+1,883 words, 9 min read
---

Somewhere right now a frontier model is writing an inference engine. By Friday it will have a name that sounds like a geology textbook, a README with a benchmark table, and a Hacker News thread where half the comments say “finally” and the other half say “source?”. As of November 2026, writing your own inference engine has become the new writing your own static site generator.

That is mostly good news. Some of these projects are real engineering, and the ideas flow back into the tools most people use. But a tokens-per-second number now needs a second question before it means anything: what did they change to get it? A kernel, a quantization, or the model’s behaviour? The first is a speed-up. The last is a different model with the same name.

I wrote about viral hardware claims in The 78 dollar GPU. That article was about the card. This one is about the software on it.

1. The Cambrian explosion

A useful field guide comes from a write-up on AMD inference (AMD-specific fork of llama.cpp). The new engines share three traits:

  • They focus on a narrow set of models and hardware.
  • A frontier model vibe-codes most of them.
  • They chase ever-higher generation speeds.

None of these is a red flag on its own. Narrow focus is how you beat a generalist engine. llama.cpp, vLLM and SGLang aim for broad compatibility, which leaves performance on the table for any one card. Vibe-coding is concerning but may be standard practice in a year. And chasing speed is the whole point.

Magnitude compiles and autotunes its kernels on your device and claims up to 2x over llama.cpp (Magnitude - Self-optimizing inference engine for agents). tandem.cpp runs a sparse DeepSeek model on a 16 GB GPU by caching hot experts in VRAM and sending misses to the CPU (Run a DeepSeek 4.1 Flash on a 16GB GPU (tandem.cpp)). This month llama-modchip promises CPU-only inference for mixture-of-experts models up to DeepSeek-V4 284B in 64 GB of RAM, with its own compression, expert routing and AVX-512 kernels (Llama-modchip - 284B DeepSeek on 64GB RAM, no GPU).

2. When “faster” means “different”

Here is where the field guide turns critical. Some engines have stopped optimising the hardware path and started changing how the model thinks. The example given: Strata prefers experts that already sit in VRAM, even when the router would have picked others that live in system RAM or on disk (AMD-specific fork of llama.cpp).

That is not a faster version of the model. In a mixture-of-experts model the router’s choice is the computation. Override it and you run a slightly different network that happens to load the same weights. It is -ffast-math for language models: fast, mostly fine, and occasionally your physics simulation decides gravity is optional.

Compare that with tandem.cpp’s approach as described: hot experts are cached in VRAM, and misses go to the CPU instead of being skipped (Run a DeepSeek 4.1 Flash on a 16GB GPU (tandem.cpp)). Same caching idea, different contract. One changes where the work happens. The other changes which work happens. The benchmark table looks the same for both.

Quantization claims need the same reading. NariQ advertises “BF16-level” Qwen3.8-27B in a 10 GB file (NariQ - BF16-level Qwen3.8-27B in a 10 GB file). Maybe it is. “BF16-level” on which benchmark, at which reasoning effort, measured by whom? Earlier material on the same model showed that a 16 GB card only reaches the published scores at xhigh effort, which costs tokens (How I Got Frontier Performance on 16GB VRAM (Qwen 3.8 27B)). A quality claim without an eval setup is a vibe with a unit attached.

3. The boring alternative: a small diff

The project the AMD write-up ends up recommending is pleasantly dull. llama-cpp-rdna-boosts is not a new engine. It is a small set of AMD-specific patches, reapplied to pinned llama.cpp commits and shipped as a prebuilt ROCm container you run with podman. On an AMD R9700 eGPU with a Qwen3.8-27B Q6 model, prefill went from about 700 to 1300 tok/s and generation from 35 to 55 tok/s (AMD-specific fork of llama.cpp).

Why prefer this over a fork that promises the moon?

  • The base stays stable. llama.cpp reviews contributions carefully. Your patches sit on top of that, not instead of it.
  • The diff is reviewable. A handful of patches you can read beats a rewrite you have to trust.
  • The change is in the hardware path. Faster kernels on RDNA, same model.
  • Upgrades are mechanical. Pull a newer image, which the author admits not having tried yet.

The write-up has its own honest caveat: the documentation is “straight Claudish”. A small patch set written by a model is still written by a model. But a small diff is something you can actually review, and that is the property that matters. It is the difference between a pull request and a fork that changes every file and calls itself v1.0.

4. Tuning without leaving the mainstream

The other counterweight comes from someone who refused to switch engines at all. Running Inkling 2 Mini in vLLM on a single NVIDIA GB10, with a Qwen3.8-27B still on the machine and the full 131,072-token context kept, a few days of tuning reached 101 tok/s for one request, 195.7 tok/s across four, and 9.7 seconds to the first token on a 32K prompt (Getting 101 tok-s from Inkling 2 Mini in vLLM on one GB10).

On the same community benchmark, a TensorFold port measured 105.5 tok/s and an SGLang recipe 112.0 for a single request. So the specialised setups are faster, by about 4 to 11 percent. With four concurrent requests the tuned vLLM beats both published setups.

Two things in this report matter more than the headline:

  • It measures more than one number. Single-request speed, concurrent throughput and time to first token on a long prompt. That is how you catch an engine that wins the demo and loses the agent workload. An agent sends a 30K prompt every turn, so prefill is most of the waiting.
  • It keeps the constraints. No dropped context, no evicted second model. Plenty of benchmark tables get their speed by quietly giving up something you needed.

The tuned vLLM is not the fastest single-request setup. It is the one where you know what you gave up, which is nothing.

5. The mainstream absorbs the good ideas

Watch what Ollama did with the same model over one week. Version 0.40.17 added Inkling 2 Mini on Apple silicon and let Ollama serve several requests at once there (ollama v0.40.17). Version 0.40.18 fused Inkling’s residual mixing on Metal and made decode, prefill and draft rounds faster (ollama v0.40.18). Version 0.40.19 sped up short histories and draft proposals again (ollama v0.40.19).

That is the normal life cycle. Bespoke engines are the R&D lab: they try aggressive ideas on narrow hardware, and some of those ideas survive. The mainstream tools pick up the ones that hold, a few releases later, behind a stable interface. If you just want to use the model, waiting two weeks for the changelog is often the best performance trick available. It is also the cheapest.

6. The physics floor

All of this happens above a floor that software cannot dig through. The best illustration this month is an experiment that went gloriously wrong on purpose. An application developer split a 4B Qwen decision model across AWS Lambdas, one layer per job and one block of tokens per job, passing state through S3. One request became 5,600 Lambda invocations, and 92 percent of the work ran in parallel (Serving Qwen via 5,600 Lambdas for fun and 80x negative profit).

The bill: 17 seconds and 3.4 cents to read a 4,000-token document. That is about $8.40 per million tokens, more than 80 times a hosted decision model. The author’s conclusion is the one every engine author meets eventually: one layer over a few thousand tokens is a big matrix multiply, and GPUs are built for exactly that. CPU time still costs money. There is no arbitrage.

The fun counterpart is Bare Metal Qwen: a 24 KB bootable x86-64 operating system in pure assembly that runs Qwen3-0.6B chat without Linux, libc or C (Bare Metal Qwen - bootable Qwen3-0.6B OS in pure assembly). It is a delightful stunt. It also shows why there are so many engines now. The core of inference is small. A transformer forward pass fits in a boot sector’s ambitions. What does not shrink is memory bandwidth and matrix math, so every engine competes on the same floor. That is why the honest gains are measured in tens of percent, and why claims of 3x deserve a second look.

7. A reading guide for the next engine

Ask Why it matters Red flag
What changed: kernels, quantization or model behaviour? Only the first is the same model, faster Expert routing “optimised” for what is in VRAM
Is it a patch set or a rewrite? A small diff on a stable base can be reviewed and upgraded A fork with its own version history and no upstream
Which numbers: single request, concurrency, time to first token? Agents live on long prompts and parallel calls Only single-request generation speed
What was given up? Context length, a second model, quality “128K context” in the README, 8K in the benchmark
How was quality measured? Quantization and routing changes show up in evals, not in tok/s “BF16-level” with no eval setup
Will the mainstream pick it up? Ollama and vLLM absorb what works within weeks You are the only user of the fork that runs your production

The takeaway

The boom is real and mostly healthy. Narrow engines find tricks the generalists miss, and the good tricks reach Ollama a week later. But a benchmark table from a new engine is a claim about a diff you have not seen. Read it like a code review: what changed, what was removed, and does it still pass the tests the README skipped?

Prefer the boring option when it is close: a small patch set on llama.cpp, or a well-tuned vLLM that keeps your context and your second model. Treat changes to expert routing as a model change, not a speed-up. And remember the 5,600 Lambdas. Software can move the work closer to the floor, but it cannot remove the floor.

A caveat on the sources: the llama-modchip capabilities come from its README, and the NariQ quality claim comes from the title alone, because the model card could not be read. The AMD numbers come from a single setup, and the author says results will vary. The Strata routing behaviour is the AMD write-up’s description, not something I checked in Strata’s code. The GB10 comparison uses community benchmark results reported by the author. The Lambda costs are from a single deliberately naive experiment.

Sources