{"slug": "qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp", "title": "Qe – Qwen3.8-Flash-Next wrote its own inference engine, 2x llama.cpp", "summary": "A CPU-only inference engine written for Qwen3.8-Flash-Next outperformed llama.cpp roughly 2x on generation and 1.7-1.8x on prompt ingestion on a single Intel Core Ultra 7 265 with 128 GB of DDR5 and no GPU, according to the project's own benchmarks. The engine, called qe, generated 15.3-15.6 tok/s greedily versus llama.cpp's 7.65 tok/s and ingested a 512-token prompt at 87-93 tok/s versus 51.33 tok/s, with image encoding at 1.0 s versus 2.1 s for a 640x480 photo. The project attributes the generation gain not to faster kernels but to replacing equal thread slices with a cursor-based row dispatch, since the chip's eight P-cores and twelve E-cores previously left the master waiting 32.5 ms of an 89 ms step for the slowest worker.", "body_md": "**A CPU-only inference engine for `Qwen3.8-Flash-Next`, hand-tuned to one machine:\nan Intel Core Ultra 7 265 with 128 GB of DDR5 and no GPU in the picture.**\n\nNot a fork of llama.cpp and not a wrapper around one: the GGUF reader, the\nquantised kernels, the router, the attention indexer, the draft-head loop, the\nvision tower and the HTTP server are all in this tree. It links three libraries -\n`libpthread`, `libm`, and `libdl`, which is there only to open `libwebp` at run time\nwhen a request sends a WebP and the host has it. PNG and JPEG are decoded by the\nvendored `src/stb_image.h`, the decoder llama.cpp uses, so an image is the same pixels\nin both engines.\n\n```\nLDFLAGS += -pthread -lm -ldl\n```\n\nThere is no CUDA, Metal, Vulkan, ROCm, OpenCL or SYCL in it, and no `libggml`.\nEvery number below is a CPU number, taken on the box it was built on, with one\nprocess resident at a time.\n\nMeasured on this host, default settings, 19 of 20 cores, one sequence:\n\n|  | qe | llama.cpp |  | \n|---|---|---|---|\n| **Prompt ingestion** , 512-token batch | **87 - 93 tok/s** (10.7 - 11.5 ms/token) | 51.33 tok/s | **1.7 - 1.8x** | \n| Prompt ingestion at 32k / 128k tokens of context | 85.6 / 82.1 tok/s |  |  | \n| **Generation** , greedy | **15.3 - 15.6 tok/s** (64 - 65 ms/token) | 7.65 tok/s (130.7 ms) | **2.0x** | \n| Generation at 32k / 128k tokens of context | 14.9 / 14.5 tok/s (67.0 / 68.8 ms/token) |  |  | \n| **Throughput** , eight sequences in one step (`--batch 8` ) | 18.0 tok/s across a wave of eight (measured before §7.30 below) | none |  | \n| **Seeing an image** , 640x480 photo (300 rows) | **1.0 s** | 2.1 s | **2.1x** | \n| Seeing an image, 5760x2160 screenshot (4056 rows) | 69 s | 77 s | 1.1x | \n\nllama.cpp is the same checkpoint and the same host: b12359 for ingestion\n(`-ngl 0 -t 20 -fa on`), b12110 for generation on the same corpus, b12359's\n`llama-mtmd-cli` for the image rows (its own \"batch encoding done\" line, same mmproj,\nsame image, same 19 threads). The two engines\nare never resident at the same time; nothing here was measured with both of them\nholding 90 GB of weights.\n\nThe generation row moved from 10.9 to 15.6 tok/s in one cycle, and not by a faster kernel:\na third of every decode step was nineteen threads waiting at a barrier for the slowest of\nthem, because this chip is eight fast cores and twelve slow ones and every dispatch handed\nthem equal slices. `make decode` is the instrument that found it (ideas.md §7.30).\n\nInstruments, so that none of the above is a claim: `make decode` (where a step's time goes\nper stage - pool, barrier tail, serial - and a race of decode switches priced in nats),\n`make forward` (the ingestion\nsweep and one A/B leg per arithmetic switch), `make head` (a step, a draft row and\na verified window, with the nextn head resident), `make batch` (B sequences through\none step, three arithmetic arms, and a row of a partly full step asserted byte for\nbyte against that sequence walked alone), `make lane` (the same multiplier through\nthe engine's request entry), `make score` (teacher-forced loss and ms/token over\n1,200 real positions), `make alu` (what this machine can actually read).\n[MANUAL.md](https://github.com/haschka/qe/blob/main/MANUAL.md) is the running log, [docs/DESIGN.md](https://github.com/haschka/qe/blob/main/docs/DESIGN.md)\nis the kernel-by-kernel account, and `--report` prints the budget from the file's headers\nalone.\n\nBecause it was written against this machine's measurements instead of a portable model of a CPU.\n\n- **Rows handed out from a cursor, not sliced equally.** The pool has eight P-cores and\neleven E-cores in it, and a slice that is equal by construction ends every dispatch on an\nE-core: measured, 32.5 ms of an 89 ms step was the master waiting for the last worker.\nEvery walk whose output rows are independent - the dense GEMVs, the expert chunks, the\nindexer's block scores, the attention units, the delta rule's state rows - now takes\nits next chunk of rows from an atomic counter, so a fast core simply walks more; and the\nwalks of a step that read the same input share one dispatch of the stage graph (953\ndispatches a step became 461). The tail is 2.1 ms. A row is still one kernel call, so\nthis part is byte-identical to what it replaced.\n- **A prompt's per-token work on every core, and the recurrence and the experts unstalled.** The loops between a chunk's walks (norms, gates, injections, the convolution, the attention\nprologue) were 3.3 ms of every ingested token on one thread; they run across the pool now,\nbyte-identical. The gated-delta recurrence walks eight state rows at once instead of waiting\non one FMA chain at a time, and the expert stage takes its work from cursors with a down\nprojection that sums in a fixed order. Ingestion went 63 → 87 tok/s (ideas.md §7.33-7.35).\n- **Integer walks on a decode step too.** A step's input is recoded to int8 once per\ndispatch, and both the IQ4_NL dense copy and the routed experts are walked with`vpdpbssd` against it - the form a chunk already used, which a lone token never reached.\nThe dense projections then read at 80 GB/s, the bus.\n- **The whole checkpoint is resident before the listener opens.** 87.25 GiB of\nweights are placed in RAM (or hugetlb) at startup,`mlock` ed and reused; an\nengine that cannot make the file resident prints the two numbers that decided it\nand exits. There is no lazy path, no partial load, no`mmap` fallback: a token\nnever reads the device. On a 128 GB board that is not a luxury, it is the whole\ntrick - and 7.7 GiB of the box is then spent on*copies* (below).\n- **Kernels that run at the machine's own ceiling.** The decode step is one\nbandwidth-bound GEMV, so`make alu` measured the ceiling first: 76-79 GB/s for\nthe shape a decode step has at 19 threads, 85.5 GB/s for a flat read on the eight\nperformance cores. The shipped Q8_0 GEMV reaches**74-83 GB/s** . Software\nprefetch was measured as a 6-67 % regression and deleted,`vpdpbusd` without a\nmatching weight layout was measured as a loss and deleted, and a`-mavx512f` build SIGILLs here because AVX-512 is fused off on this die, so the\nbuild is`-march=native` on AVX2 with AVX-VNNI.\n- **Load-time requantised copies, not a faster walk of the same bytes.** A lone\ntoken is 66.6 % dense`Q8_0` projections and 8.9 % a`Q6_K` output head,\nand this host walks`Q6_K` at 44-46 GB/s. So at open the 496 dense matrices are\nrequantised to 1.9 GiB of IQ4_NL rows and the 497 MiB head is re-stored as a\n644 MiB`Q8_0` copy - 30 %*more* bytes, 1.02x faster, because bytes are not what\nwas binding. Together a step is**1.19x** faster, and`make score` prices what\neach copy costs the next-token loss so the trade is read rather than argued.\n- **One int8 activation load feeding three output rows.** A chunk's activations are\nrecoded to int8 once per layer and a whole expert bucket is walked against that\npanel with`vpdpbssd` ; the dense projections get the same treatment from a copy\nrequantised to one scale per output row, worth**1.84x** of the walk it replaces\nand 1.63x of a chunk's projection stage.\n- **10 of 512 experts, walked as one pass.** Serial expert passes are 47.4 ms of an\ningested token; one grouped pass over the bucketed experts is**27.0 ms** , and the\nseven dispatches around it are one stage graph so a short stage lends its threads\nto a long one's tail.\n- **Speculation is built, measured, and off by default.** The nextn head these\ncheckpoints ship as a sidecar file stages resident and runs as one more layer of the\ntrunk, and at the old step speed it was worth 1.06x at one draft token. The step is now\n1.38x faster and a two-row verify window is not: it costs 1.6 of the new steps, so a pass\nthat emits 1.6-1.7 ids no longer beats the plain loop.`--spec-k 1` (with`--mtp` ) turns\nit back on; ideas.md row 30 is what would make it pay again.\n- **Built for an agent's turn, not a benchmark's.** Prompt reuse across turns\nagainst a bounded rewind cache, q8_0 KV (21.3 KiB per token of context), an\nindexer that scores blocks so a 262,144-token window stays in line, greedy\nrequests that speculate, and a pool one core short of the affinity mask because a\nspinning worker with no core of its own pays a scheduler timeslice at every one\nof the ~800 dispatches a token makes (106.2 ms at 19 threads, 125.2 ms at 20).\n\n- Linux on one NUMA node, x86-64 with AVX2 + AVX-VNNI (this build was tuned on a Core Ultra 7 265: 20 logical CPUs - 8 performance, 12 efficient, no SMT - 30 MiB L3, max 5.3 GHz, 125.3 GiB addressable of the 128 GB fitted in two DDR5-5600 slots, both running at their rated speed).\n- A C17 compiler and GNU make. No other dependency: no cmake, no curl, no OpenBLAS, no Python at runtime.\n- **About 95 GiB of RAM free** for the checkpoint used here (87.25 GiB of weights\nplus 7.7 GiB of the load-time copies), and one GGUF you trust. If the copies do\nnot fit, the engine says so at open with the bytes it wanted and the bytes it saw,\nand serves without them. Seeing images adds the 0.85 GiB projector, plus the\nactivations of one encode while it runs (a few hundred MiB for a screenshot, under\n1 GiB at the 4096-row cap).\n- Build it on the machine that will run it. `-march=native` is not optional here,\nand the tuning is host-specific: the numbers above are not portable, and on a\ndifferent CPU the honest answer is`make walk` and`make alu` on your own box.\n\n```\n# 1. Build (a couple of minutes; nothing touches the model file)\nmake -j\"$(nproc)\"\nmake fast            # kernels only, ~25 s, no checkpoint\nmake test            # kernels, the speculation control loop, request parsing, chat\n                     # templates, the sampler, the rewind cache, the pool, the MoE walk\n\n# 2. What this engine thinks a token costs on this host (headers only; no weight byte)\nMODEL=/path/to/Qwen3.8-Flash-Next-...-00001-of-00003.gguf ./bin/qe-serve --report\n\n# 3. Serve it. Every weight byte is placed in RAM before the listener opens, so the\n#    port stays closed until the engine can actually answer a request. After that\n#    the file is never read again.\n./bin/qe-serve --port 8097 --id qe \\\n  --model /path/to/Qwen3.8-Flash-Next-...-00001-of-00003.gguf \\\n  --mmproj /path/to/mmproj-Qwen3.8-Flash-Next-BF16.gguf   # optional: images are seen\n\n# 4. Use it\ncurl -s localhost:8097/v1/chat/completions -H 'content-type: application/json' \\\n  -d '{\"model\":\"qe\",\"stream\":true,\"max_tokens\":64,\"temperature\":0,\n       \"messages\":[{\"role\":\"user\",\"content\":\"Name the three primary colours of light.\"}]}'\n```\n\nOnly volume 1 of a multi-volume checkpoint is named; the rest are found by name.\nSpeculation is off unless asked for: `--spec-k 1` with `--mtp` drafts from the nextn\nhead, `--spec-k 2` without it from the n-gram hash. At today's step speed neither beats\nthe plain loop (ideas.md §7.30), which is why neither is the default.\nLeave `--mtp` off unless you also pass `--spec-k`: with speculation off the head is\nresident (2.6 GiB) and idle. Before ideas.md §7.36 it was still walked on every prompt chunk,\n12 % of ingestion (336 against 296 s on a 23k-token prompt); now it costs nothing but RAM.\n`--stage huge` moves the arena into a reserved hugetlb pool and reuses it across\nrestarts. `--ctx N` is a memory setting as much as a token limit. `SIGTERM` closes\nthe listener immediately and gives the port back inside its grace period.\n\nRoutes: `/health`, `/v1/models`, `/v1/chat/completions`, `/v1/completions`, and\nSSE streaming. A request with no `temperature` samples at the checkpoint's own\n(`general.sampling.temp`, 1.0) unless `--temp` says otherwise; send `\"temperature\": 0`\nfor a greedy, byte-for-byte repeatable answer. `presence_penalty` and\n`frequency_penalty` are OpenAI's (over the answer so far, -2 to 2, a 400 outside it),\nand `reasoning_effort` takes `none`, `minimal`, `low`, `medium`, `high`, `xhigh` and\n`max` - the last three are this model's top setting. What the engine is doing stays visible while it does it: `/health`\nreports the draft head, the draft length and the turn-cache counters, and `--ui`\nopens the terminal panel with the per-stage timings of the request in flight\n(`make ui` shows that panel on a pty and asserts it never draws into a log).\n\nGive the server the projector that ships beside the checkpoint and an image in a request is seen, not described:\n\n```\n./bin/qe-serve --model .../Qwen3.8-Flash-Next-...-00001-of-00003.gguf \\\n  --mmproj .../mmproj-Qwen3.8-Flash-Next-BF16.gguf --id qe --port 8097\n# qe: vision: images are seen, at most 4096 rows each (--image-max-tokens)\n\ncurl -s localhost:8097/v1/chat/completions -H 'content-type: application/json' -d '{\n  \"model\": \"qe\", \"temperature\": 0, \"reasoning_effort\": \"none\",\n  \"messages\": [{\"role\": \"user\", \"content\": [\n    {\"type\": \"image_url\", \"image_url\": {\"url\": \"data:image/jpeg;base64,'\"$(base64 -w0 page.jpg)\"'\"}},\n    {\"type\": \"text\", \"text\": \"What is the headline?\"}]}]}'\n```\n\nWhat happens to the image, all of it in this tree (`src/vision.c`, docs/DESIGN.md\n\"Images\"):\n\n- **The tower.** The mmproj is a 27-block ViT, 1152 wide, 16-pixel patches, a 2D\nrotary and a 2x2 merger to the trunk's 2560. It is staged in RAM at startup with\neverything else (0.85 GiB), and run with an AVX2 GEMM tiled six rows by sixteen,\nits tiles handed out from a cursor like every other walk here.\n- **The prompt.** Each image becomes its merged grid of rows - a 640x480 photo is 300,\na full-HD screenshot about 2000 - placed where the chat template puts an image and\npositioned with the checkpoint's interleaved m-rope. The text after it carries on\nfrom where the image's grid ends, as the model was trained to read.\n- **The cache.** An image is identified by its bytes, so a conversation that sends the\nsame screenshot again on the next turn reuses it like any other prefix: no second\nencode, no second read. A different image of the same size is not mistaken for it.\n- **What it costs text.** Nothing measurable: ingestion is 93.1 tok/s with the tower\nbuilt and without it, and a text-only conversation takes exactly the rope arithmetic\nit took before - same logits, same argmax (`make decode` , both builds, one load each).\n- **What it agrees with.**`make vision` encodes an image and compares it row by row\nwith llama.cpp's own dump of the same image (`MTMD_DEBUG_EMBEDDINGS=ref.bin llama-mtmd-cli ...` ): median row cosine 0.99998, the same resize and the same grid.\n- **The dial.**`--image-max-tokens N` caps the rows one image may become (4096 by\ndefault, llama.cpp's). The encode falls with the square of it: 1024 sees a 1024x1024\nscreenshot in a few seconds.\n\nUp to 32 images a request; past that the oldest are left out, because an agent\nresends its history and the image it is asking about is the newest. They are left out\n16 at a time, so the front of the prompt stays the same for the next 16 images and the\nturn cache keeps working: one at a time, every new image changed the prompt where the\noldest had been and the whole session was read again. With `--batch N`\nimages are described in text instead, because an encode needs the whole thread pool;\nthe model is told why, in a sentence that names `--batch 1`, so what reaches the user\nis the setting that fixes it. The request itself is not refused: an agent resends its\nhistory, and one screenshot would fail every later turn of the conversation.\n\n```\n{\n  \"$schema\": \"https://charm.land/crush.json\",\n  \"options\": { \"request_timeout\": 3600 },\n  \"disable_default_providers\": true,\n  \"providers\": {\n    \"qe\": {\n      \"name\": \"qe\",\n      \"base_url\": \"http://127.0.0.1:8097/v1\",\n      \"type\": \"llamacpp\",\n      \"auto_discover_models\": true,\n      \"api_key\": \"qe\",\n      \"models\": [\n        { \"id\": \"qe\", \"name\": \"qe\", \"context_window\": 262144,\n          \"default_max_tokens\": 32768, \"supports_attachments\": true }\n      ]\n    }\n  }\n}\n```\n\n`supports_attachments` is what lets crush's `view` tool send an image at all: without\nit crush answers \"this model does not support image data\" before a byte reaches the\nengine, and its `llamacpp` discovery reads only the context window, never the\ncapability. A model listed by hand is kept as written, so `context_window` goes in it\ntoo - the number `--ctx` opened, or smaller.\n\n`request_timeout` is load-bearing: it is an *idle* deadline on a stream, an unset\none is 120 seconds, and a long ingestion emits no parsed part while it runs.\n`type: \"llamacpp\"` is the other half - its enricher reads `n_ctx` from\n`/v1/models`, so the context window this process opened with becomes the window the\nclient plans with. `make probe-crush` drives exactly this block against a loaded\nengine, including a tool call that has to come back as a tool result.\n\nThree things crush's own log showed going wrong, and what the server does about them:\ntool arguments are typed by the request's `tools[]` schema, so a shell id like `001`\narrives as the string it is and an edit's `old_string` keeps its indentation; a turn\nthat closes inside its reasoning without an answer reports that reasoning as the\nanswer, so a sub-agent always hands its parent text; and a request with no\ntemperature samples instead of decoding greedily, which is what kept a thinking block\nfrom going round in circles. MANUAL.md, \"Pointing crush at it\", has the detail.\n\nEverything that could plausibly trade quality for time is a switch, was measured against the thing it replaced in one load, and ships with the winning reading. The ones worth knowing:\n\n| variable | default | what it does | \n|---|---|---|\n| `QE_DYN_KB` | `64` | a lone token's walk hands its rows out in chunks of about this many KiB of weights from a cursor, so a P-core takes more rows than an E-core instead of waiting for it; `0` is the equal slice. Byte-identical either way | \n| `QE_STEP_FUSE` | `1` | a step's walks that read the same input share one dispatch (the four GDN projections, the five attention ones, a mixer's pair, router beside shared expert), and the routed experts take the one-token int8 walk with per-route partials | \n| `QE_I8_STEP` | `1` | a lone token's dense walk recodes its input to int8 once per dispatch and walks the IQ4_NL copy with `vpdpbssd` : 23.2 → 20.6 ms of a step, nll -0.03 over 400 positions | \n| `QE_I4_MULTI` | `2` | passes of up to this many rows (a verify window) read the IQ4_NL dense copy too | \n| `QE_ROWS_PAR` | `1` | a prompt chunk's per-token loops across the pool; byte-identical | \n| `QE_DELTA_SIMD` | `1` | the gated delta rule eight state rows at a time; nll unmoved | \n| `QE_MOE_DYN` | `1` | the grouped expert pass on cursors, its down summed in bucket order (no per-thread partials, 4.8 GB less RAM) | \n| `QE_ATTN_BATCH` | `1` | a prompt chunk's attention as one selection dispatch and two per 32 tokens, instead of three a token; byte-identical | \n| `QE_CHUNK_DYN` | `1` | the cursor for multi-row walks as well | \n| `QE_I4_DENSE` | `all` | read the load-time IQ4_NL copy of the dense projections; `lean` holds the 194 hyper-connection mixers and the 31 matrices at the trunk's ends at`Q8_0` , buying back two thirds of the loss for 8 ms of a step;`0` is off | \n| `QE_I4_HEAD` | `q8` | walk the output head from its `Q8_0` copy (`i4` , or`stored` for the file's own`Q6_K` ) | \n| `QE_I4_HEAD_WIN` | `1` | let a verify window read that copy too, which is what keeps k=1 speculation ahead | \n| `QE_I8_FLAT` | `1` | the flat one-scale-per-row dense copy a chunked prefill walks three rows against | \n| `QE_I8_MOE` ,`QE_I8_RS` ,`QE_I8_PROJ` | on | the int8 activation panel in front of the experts, the row scale, and the dense projections | \n| `--spec-k N` | 0 | draft length for greedy requests: `1` with`--mtp` drafts off the head,`2` without it off the n-gram hash; off by default because at today's step speed neither beats the plain loop (`QE_SPEC_AUTO=1` restores the old resolution) | \n| `--batch N` | `1` | drive N sequences through one walk of the weights: 2.15-2.20x the step they share and 1.79x a wave of eight short requests, for 0.060 nats and a per-client tok/s that gets worse ( `make lane` ) | \n| `--walk-threads N` ,`QE_WALK_THREADS` | every thread `--threads` has | threads a lone token's weight walk asks for. One kernel walking those bytes prefers 16 of 19 by 6.2 %; a step of them is 1.07x slower there, so the default is the whole pass and the knob is for a host whose bus is shaped differently ( `make forward` 's width leg) | \n| `QE_SMALL_PROJ_BATCH` | `1` | whether a projection under `--proj-chunk` 's 1 MiB threshold is asked of the pool once for the chunk or once for every token of it. 180 of this checkpoint's projections are under it, and the loop barriered a nineteen-thread pool 92,160 times a width-512 chunk for them, so the batch is 1.037x of an ingested token and byte for byte the same logits;`0` is the loop back (`make forward` 's small-projection leg) | \n| `QE_EXP2_SIMD` | `0` | whether a gated-delta block's decay and one cell's attention weights use the eight-wide `exp2` the gates have always used rather than libm`expf` . It is 7.1-7.4x the element rate at 3.5e-06 relative, and a token asks for 114,048 to 322,992 exponentials, which at nineteen threads is 7 to 20 microseconds of an 88 ms step: measured 1.000x of ingestion and 1.00x of a step for 0.67 nats, so the dial ships off and the sixteenfold redundancy the table beside it removed ships unconditionally (`make forward` 's exponential leg) | \n\n`make walk`, `make alu`, `make pool` and `make moe` need no checkpoint at all, so\nthe interesting arguments about this machine can be settled on yours.\n\n- Not a GPU engine, and not a port layer for one.\n- Not a throughput server, even with `--batch N` : that flag multiplies decode and\nnothing else, so two clients on 512-token prompts still cost 1.00-1.02x of the same\ntwo one at a time, and`make serve` still measures the wall a second client waits for.\n- Not a general model runner: it runs `qwen4exp` checkpoints (48 layers, 2560 wide,\n512 routed experts with 10 active, the n-gram PLE table, hyper-connections, the\nblock indexer), its`qwen3vl_merger` vision projector, an OpenAI-compatible surface,\nand a chat template read from the file. No video, and no audio. Anything else it refuses at open rather than approximates.\n- Not measured on your machine yet. Run `make alu` ,`make walk` and`make report` first; the design numbers in this repository are host-specific on purpose, which\nis the only reason any of them are worth quoting.\n\n```\nsrc/            21 C files: gguf reader, kernels, layers, MoE, attention,\n                indexer, forward pass, vision tower, sampler, drafter, spec loop,\n                HTTP, server; plus the vendored stb_image.h\ninclude/qe.h    the whole interface, with what each function owes whom\nbench/          the instruments: gemv, walk, moe, pool, alu, score, forward, head,\n                vision\ndocs/           DESIGN.md (the budget and the dead ends), ARCH.md (the shapes)\nideas.md        2,500 lines of what was measured, priced, and left off\nMANUAL.md       status tables, every make target, every route, the crush notes\n```\n\n", "url": "https://wpnews.pro/news/qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp", "canonical_source": "https://github.com/haschka/qe", "published_at": "2026-12-05 14:41:55+00:00", "updated_at": "2026-12-05 15:16:02.584596+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-tools", "machine-learning"], "entities": ["Qwen3.8-Flash-Next", "qe", "llama.cpp", "Intel Core Ultra 7 265", "Qwen"], "also_reported_by": [], "takeaway": "On an 8 P-core/12 E-core CPU, dispatching independent output rows from an atomic cursor instead of equal thread slices cut barrier wait from 32.5 ms of an 89 ms decode step and lifted generation from 10.9 to 15.6 tok/s.", "recommendation": {"advice": "On hybrid P-core/E-core CPUs, hand independent output rows to threads via an atomic counter rather than equal slices, so fast cores take more work and barrier tails shrink.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp", "markdown": "https://wpnews.pro/news/qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp.md", "text": "https://wpnews.pro/news/qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp.txt", "jsonld": "https://wpnews.pro/news/qe-qwen3-8-flash-next-wrote-its-own-inference-engine-2x-llama-cpp.jsonld"}}