hn.today

Qe – Qwen3.8-Flash-Next wrote its own inference engine, 2x llama.cpp

github.com30 points10 comments
Screenshot of Qe – Qwen3.8-Flash-Next wrote its own inference engine, 2x llama.cpp

Qe is a standalone, CPU-only inference engine for Qwen3.8-Flash-Next, built and tuned for an Intel Core Ultra 7 265 with 128 GB of RAM. It includes its own GGUF reader, quantized kernels, routing, attention indexer, vision support, HTTP server, and draft-head logic rather than relying on llama.cpp. On this machine, it reports 87-93 tokens per second for 512-token prompt ingestion and 15.3-15.6 tokens per second for greedy generation - about 1.7-1.8 times and twice the speed of the compared llama.cpp runs. Image encoding is also faster for a 640×480 photo, but only modestly faster for a large screenshot. The figures are specific to this host and were measured with one engine resident at a time.

The gains come from adapting work distribution and kernels to the processor’s mix of fast and efficient cores: workers take tasks dynamically, reducing time lost waiting at synchronization barriers, while parallelized prompt work and integer-based projections improve throughput. At startup, Qe loads the full checkpoint into RAM and may create additional requantized copies; the tested setup needs about 95 GiB free, and weights are not read from storage during inference. It requires Linux, AVX2 and AVX-VNNI, and a native build, so its performance is not portable to other CPUs. The engine supports long-context requests, image input, streaming OpenAI-compatible endpoints, and turn-level prompt reuse. Speculative decoding is available but disabled by default because, at the measured generation speed, its verification overhead makes it slower than ordinary decoding.

Read on github.com10 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.