Repository navigation
xpu: share Qwen4 FP8 decode and preserve completion prefixes - #6426
Conversation
|
I reran the live HTTP checks on the published shared-lane changes with the official FP8 checkpoint and four simultaneous choices. On both TP=2 and TP=4, all four streamed choices matched their serial controls. The common interval with all four choices generating was 1.492 s on TP=2 and 1.324 s on TP=4. The separate concurrent runs returned 8 comparisons equal and 0 unequal or failed on each configuration. A resumed conversation reused its cached prefix and returned the expected continuation on both. Closing a client socket mid-generation and retrying also passed on both. |
|
Thanks @supernovae. First review of this head (fd8ad21, on top of #6424): small and clean. It touches only One ask: the commit message says "The B70 cache receipt checks cold versus reused token hashes", but
|
|
Added the requested hashes in For the 2,571-token completion, the cold call reported zero cached tokens, each warm call reused 2,570, and all seven output hashes matched on each rank count. The separate 2,603-token chat fixture also retained its hash after the rebase. The file separates the original throughput benchmark revision from the rebased chat-cache run. Per-request evidence on the PR branch |
|
READY to land on this head. Re-check of this head: since the reviewed runtime it adds the receipt's token-hash file and merges main and its parent #6424, every conflict resolved to the reviewed side; in the hash file every queued and shared reply in it matches its solo reply (TP2 and TP4, widths 1 and 4, three repetitions, every lane), with cache reuse rows equal across TP counts. XPU-only; we have no XPU hardware. Stacked on #6424: lands after it.
|
|
The prerequisite #6424 landed at Rebased headI verified the latest integration with the rebased head |
5094074 to
12b4d03
Compare
Reuse existing Flash Next shared forwards, prompt snapshots and lane scheduling. Refs ashhart#6317.
Use the shared prompt-cache tail policy for plain FP8 streams. The B70 cache receipt checks cold versus reused token hashes. Refs ashhart#6317.
12b4d03 to
ae13571
Compare
|
Thank you @supernovae. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Refs #6317. Schedules plain FP8 requests through the Flash Next shared decode lanes and preserves completion prefixes for cache reuse. Stacked on the experimental FP8 reader #6424. Incremental diff
On the submission source, the native XPU build and all seven Flash Next host tests passed. The served qualification used the official FP8 checkpoint at
4d35041fcd017a5608bd83bb65388757919d029cand the public concurrent client, three runs of 256 greedy output tokens per cell. At TP=2, one/four queued/four shared measured 68.1/66.6/154.8 tok/s. At TP=4 the corresponding values were 78.3/76.7/172.6. Four-stream throughput is aggregate. A single SSE request with four choices matched serial, and fresh and resumed outputs matched. Across six lengths through 65,152 prompt tokens all 270 warmed replies matched their solo hashes and the same rank-to-rank outputs. The official dynamic-FP8 comparison and retested four-choice, cancellation and prefix cases are posted. Full context, cold TTFT and shared-lane tableIssue #6317. Review parent #6424.
The per-request token hashes cover every repetition behind the six scheduler throughput cells and the fresh and resumed cache inputs. The receipt identifies the original benchmark source separately from the rebased chat-cache control.
Checks on this head
509407483acdc4aebe8e8c4f5ba7153377e1e90a, tested runtime headfd8ad21e6cf4a9cd741a791563245ddac8ebf439, upstream merge base5e7e5b2e2c384e709594c0e3d6549fe5428b1678. Public checks runpython3 tools/pr_check.py --base origin/main --pr 6426. Lean recorded 88 findings on base and head, zero new. Zig format and diff whitespace checks passed.zig build test-flashnext-xpu-host xpu-native. Counts and tested devices are above. The runtime revision passed changes, fast-gate, verify, fmt, pytest and zig. The refreshed head includes that receipt and the maintainer’s FP8 geometry tests. The native build passed all 63 steps and 11/11 focused tests. The serving runtime and kernel sources match the hardware-tested lane head. Upstream CI is running.Receipt
Linux x86-64, Arc Pro B70 (BMG-G31), Zig 0.17.0, Intel ocloc and native Level Zero. Official FP8 target
4d35041fcd017a5608bd83bb65388757919d029c. Users supply the checkpoint. The upstream merge base cannot load it on XPU. The FP8 reader is the first runnable comparison point. Testing covered the listed Intel configurations. CUDA, HIP and Metal use separate backends and were outside the hardware qualification.Existing
--parallelcontrols admission. Serial and shared hashes, throughput and cold TTFT are linked above. No new checkpoint, kernel or precision mode.Checklist