Qe is a new open-source, CPU-only inference engine for Qwen3.8-Flash-Next that reports roughly twice the generation speed of llama.cpp on one specific machine. The haschka/qe repository on GitHub is MIT-licensed C code. Its README reports 15.3 to 15.6 tokens per second of greedy generation against 7.65 for llama.cpp on the same checkpoint and host. The Hacker News submission goes further and says the model "wrote its own inference engine". The README does not say that, so this post treats it as a claim to check.
The honest short version: the speed numbers are specific, detailed and reproducible in principle, but they come from the author's own machine and one model. The authorship claim is unverified. Both are interesting, and neither is a reason to rewrite your stack.
What Qe is
According to the README, Qe is "a CPU-only inference engine for Qwen3.8-Flash-Next, hand-tuned to one machine": an Intel Core Ultra 7 265 with 128 GB of DDR5 and no GPU. It is "not a fork of llama.cpp and not a wrapper around one". The GGUF reader, the quantized kernels, the router, the attention indexer, the draft-head loop, the vision tower and the HTTP server are all in the tree. It links three libraries: libpthread, libm, and libdl, the last only to open libwebp at run time when a request sends a WebP image. PNG and JPEG are decoded by the vendored stb_image.h, the same decoder llama.cpp uses.
The repository layout, as listed in the README: 21 C files under src/, a single include/qe.h interface, a bench/ folder of measurement tools, and docs/ with a design document. The README also mentions a 2,500-line ideas.md of what was measured, priced and left off, and a MANUAL.md with status tables and every make target. At the time of writing the repo had 11 commits, 5 stars and 1 fork, so this is a very early project.
It supports a narrow set of things: the checkpoint family it calls qwen4exp (48 layers, 2560 wide, 512 routed experts with 10 active, an n-gram per-layer embedding table, hyper-connections and a block indexer), a vision projector, an OpenAI-compatible HTTP surface, and a chat template read from the model file. No video and no audio. "Anything else it refuses at open rather than approximates."
The numbers the README reports
All figures below are from the README's own table. They were measured on the author's host with default settings, 19 of 20 cores, one sequence.
| Test | Qe | llama.cpp | Ratio |
|---|---|---|---|
| Prompt ingestion, 512-token batch | 87 to 93 tok/s | 51.33 tok/s | 1.7 to 1.8x |
| Generation, greedy | 15.3 to 15.6 tok/s | 7.65 tok/s | 2.0x |
| Image, 640x480 photo | 1.0 s | 2.1 s | 2.1x |
| Image, 5760x2160 screenshot | 69 s | 77 s | 1.1x |
Qe alone also reports ingestion of 85.6 and 82.1 tok/s at 32k and 128k tokens of context, and generation of 14.9 and 14.5 tok/s at the same depths. With --batch 8 it reports 18.0 tok/s across a wave of eight sequences, a figure the README says was measured before a later change.
The comparison conditions matter. The README says llama.cpp was the same checkpoint on the same host: build b12359 for ingestion with -ngl 0 -t 20 -fa on, b12110 for generation on the same corpus, and b12359's multimodal CLI for the image rows. The two engines were never resident at the same time, because each holds roughly 90 GB of weights. Two different llama.cpp builds appear in the table, so a careful reader should note that the generation comparison uses an older build than the ingestion one.
Why it is faster on this machine
The README is unusually specific about this, and it is the most useful part for learners.
- Uneven cores. The chip has eight fast cores and twelve slower ones. The README says a third of every decode step had been nineteen threads waiting at a barrier for the slowest one, because every dispatch handed them equal slices. Handing out rows from an atomic counter, so fast cores walk more rows, moved generation from 10.9 to 15.6 tok/s, and the README says not by a faster kernel.
- Fewer dispatches. Walks that read the same input share one dispatch, and the README says 953 dispatches per step became 461, with a 2.1 ms tail.
- Integer arithmetic on decode. A step's input is recoded to int8 once per dispatch, and the weights are walked with the
vpdpbssdinstruction. The README says dense projections then read at 80 GB/s, "the bus". - Everything resident. 87.25 GiB of weights are placed in RAM (or hugetlb) at startup and locked. There is no lazy path and no mmap fallback, so "a token never reads the device". On a 128 GB board that leaves about 7.7 GiB for copies.
- Measure the ceiling first. The decode step is bandwidth-bound, so the author measured the memory ceiling (76 to 79 GB/s for a decode-shaped read at 19 threads, 85.5 GB/s for a flat read on the performance cores) and reports the shipped Q8_0 kernel reaching 74 to 83 GB/s. Tricks that did not help, such as software prefetch (a 6 to 67 percent regression), were deleted.
The lesson is general: on CPUs, decode speed is a memory bandwidth and scheduling problem long before it is a math problem. If your CPU has performance and efficiency cores, equal work splitting can leave a large share of time idle.
The "model wrote it" claim
The Hacker News title, "Qwen3.8-Flash-Next wrote its own inference engine", is a strong claim. What we found in the repo supports a softer reading. There is an AGENTS.md file, titled "qe: instructions for agents", which sets a performance bar and a few non-negotiable rules for whoever, or whatever, edits the code. That tells us coding agents were expected to work in the repository. It does not tell us which model wrote which part, how much was human-directed, or whether Qwen3.8-Flash-Next itself did any of it. The README makes no such statement.
So the accurate claim is narrower: this is an engine for that model, developed with agent instructions in the repo, with an author who documents measurements heavily. Whether the model wrote it is not something the repo verifies. If the author documents the process, we will update this post.
What is not verified
- Independent reproduction. We found no third-party reproduction of the numbers. The README itself says the numbers are host-specific by design and tells readers to run
make alu,make walkandmake reportfirst. - Quality parity. The repo discusses teacher-forced loss checks (
make score) and byte-for-byte identity tests for some changes, and reports small differences in loss for others. We did not run these. - Fairness of the llama.cpp baseline. The author used a specific flag set and two builds. Tuned llama.cpp settings, other quantizations or other thread counts could shift the ratio.
- General usefulness. Qe runs one model family. The speed comes from tuning to one chip and one bus.
What this means if you run models locally
The practical question for most readers is whether CPU-only inference of a very large mixture-of-experts model is usable. The README suggests an answer for one configuration: with 128 GB of fast DDR5 and a recent Intel desktop chip, generation near 15 tokens per second is readable in real time, and prompt ingestion near 90 tokens per second means a 20,000-token prompt takes a few minutes. That is slow for a coding agent that re-reads context on every turn, which is why the repo spends effort on a rewind cache and on pricing the cost of agent-shaped workloads in its manual.
It also shows the cost of the approach. The model must fit entirely in RAM, so the memory bill replaces the GPU bill. Mixture-of-experts models help here, because only 10 of 512 experts are active per token, so each decode step reads far fewer bytes than the full weight file. That is why a bandwidth-bound CPU can reach interactive speeds at all.
If you only want to run a model on a laptop or a small server today, a general runtime such as llama.cpp remains the safer choice: it supports many models and quantizations and has a large user base. Qe is worth watching for ideas that may later flow into general runtimes, such as work stealing across uneven cores.
What developers are saying
The Hacker News thread had 9 points and no comments when we checked, so there is no community testing to report yet.
How to try it
- Read the README and
MANUAL.mdat github.com/haschka/qe. - Check you have the hardware: the engine needs the full checkpoint (87.25 GiB) resident in RAM, so you need well over 90 GB of free memory.
- Build with
make, and runmake alu,make walkandmake reportto measure your own memory bandwidth before trusting any figure. - Run your own side-by-side against a current llama.cpp build on the same checkpoint, one engine at a time.
Where it fits among other small engines
Projects like this keep appearing, each trading generality for speed on one target. We have covered several: llm.asm runs Qwen3-0.6B in a 14 KB assembly binary, dasllama claims a large speech-to-text speed-up, and the Cell LLM on PlayStation 3 is a bare-metal curiosity. On the model side, the Qwen4 35B-A3B open weights and Underdog Saluki 27B show how much of the local-AI story is about squeezing big models into small memory. For GPU-light setups, see Inkling 2 Mini with Strata.
What to take from it
For most readers, Qe is not a tool to adopt. It is a worked example of two ideas. First, a 2x gap over a general-purpose runtime is plausible when you tune one model to one machine and measure everything. Second, claims about AI-written software need a trail: commits, prompts or logs. Until the author or others supply one, "the model wrote it" is a headline, not a finding.
