A developer built a CPU-only inference engine for Qwen3.8-Flash-Next that runs twice as fast as llama.cpp.
Key points
- qe is a CPU-only inference engine for Qwen3.8-Flash-Next, hand-tuned specifically for an Intel Core Ultra 7 265 with 128 GB of DDR5 memory.
- The project is not a fork of llama.cpp; it includes its own GGUF reader, quantised kernels, router, and HTTP server components.
- Generation speed increased from 10.9 to 15.6 tokens per second by fixing thread synchronization issues on the specific hardware.
- The engine uses a cursor-based row distribution system instead of equal slicing, allowing faster P-cores to process more work independently.
- Performance measurements were taken on a single machine with no GPU, using 19 of 20 available cores for all reported results.
- The codebase links only libpthread, libm, and libdl, avoiding CUDA, Metal, Vulkan, ROCm, OpenCL, or SYCL dependencies entirely.
- Image decoding uses the same stb_image.h library as llama.cpp, ensuring identical pixel output for PNG and JPEG inputs.
Why it matters
- This matters to developers running AI models on standard laptops without graphics cards.
- It shows that careful optimization for specific CPU architectures can significantly boost speed.
- Users should watch for similar tools that target other common processor types.