Skip to content

xpu: reuse Qwen4 TFQ Ultra BF16 panels across two prompt rows on B70 - #7

Draft
supernovae wants to merge 5 commits into
xpu/review-qwen4-tfq-ultrafrom
bench/b70-tfq-dense-pair
Draft

supernovae wants to merge 5 commits into
xpu/review-qwen4-tfq-ultrafrom
bench/b70-tfq-dense-pair

Conversation

@supernovae

@supernovae supernovae commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Change

Refs ashhart#6466. This fork draft stacks on the official Ultra serving PR at b5988064def8b21e45e81ea5860c69c5d7c31ea0. Review head 695ac4d608d752a550f07e46205cd180ff132bd9. The device experiment used source 455dcfa5529035d3435b7fcbae7a2ac170219763 and baseline 819a2dcbdb563c101d4266d178c4945fa00bf2ea. Incremental comparison

Benchmark

At TP4 the paired cold TTFT comparisons for 2,048-token prompts were 11.379 → 7.839 s and 10.985 → 8.042 s. These are means of the two 2,048-token requests on each fresh server, after a 129-token input. Both comparisons used disabled prefix caching, 64-row chunks and 16 output tokens. Every output count and hash matched. The candidate preserves each row’s reduction order and uses the existing dispatch for single-row decode and odd tails.

Four PCIe Arc Pro B70s, Level Zero, the official Ultra 4.50 checkpoint, plain greedy serving and 64-row chunks. The receipt includes hardware, build settings, server and client commands, the individual arm results, output hashes and cache accounting. Hardware receipt

Kernel checks

SUMMARY bmg-g31 0xe223 34 kernels: 34 pass gates 1-4, 0 fail, 0 known findings; 23 controls: 23 red as planted, 0 missed; 0 limit problems; gates 10723 ms, limits 1 ms

The native tests, Zig format, whitespace and PR checks passed on the B70 branch with zero new lean findings. The backend image changes are confined to XPU.

Coordination

The paginated upstream scan covered all 442 open PRs at scan time. ATC reported partial coverage. Trial merges found no additional conflicting source paths in the reviewed upstream overlap candidates relative to Ultra. The optimization is separate from the upstream per-pack support stack. The public issue tracks the upstream acceptance gate.

Extended hardware benchmarks

The standalone paired dense candidate completed the full cache-disabled 65,536-token-capacity sweep on TP4. Each input generated 16 tokens and matched the baseline count and hash. Effective input throughput includes time to the first generated token.

Input tokens Baseline TTFT (s) Candidate TTFT (s) TTFT change Effective input tok/s, baseline → candidate Decode tok/s, baseline → candidate
2,048 11.30 7.75 -31.5% 181.2 → 264.4 18.18 → 18.53
8,192 49.37 36.06 -27.0% 165.9 → 227.2 18.30 → 17.55
32,768 194.15 141.65 -27.0% 168.8 → 231.3 18.26 → 17.49
65,504 381.26 280.25 -26.5% 171.8 → 233.7 17.32 → 17.33

Raw benchmark data and commands

Standard receipt coverage

On the Ultra baseline and the packed-decode candidate, the public logprobs_long chat prompt returned both requested tokens with HTTP 200 in a two-token streaming control. With logprobs=true, top_logprobs=1 both servers returned HTTP 400, “logprobs are not supported by this model or backend.” The full 16,384-output-token logprob workload therefore remains open for the native TFQ lane. The benchmark tables above use the standard greedy clients. The separate FP8 logprob implementation is tracked in #6434.

Landed checkpoint integration

The refreshed Ultra parent includes ashhart#6372 and ashhart#6426. The incremental performance patch preserved all added and removed source lines. On this revision the native build passed 101 steps and 40 focused host tests. A fresh TP4 server passed all 11 independent Ultra streams. The live device contract exited 0.

SUMMARY bmg-g31 0xe223 34 kernels: 34 pass gates 1-4, 0 fail, 0 known findings; 23 controls: 23 red as planted, 0 missed; 0 limit problems; gates 11712 ms, limits 0 ms

Independent upstream PRs ashhart#3671 also edit the optimization ledger. Preserve the measured B70 receipt link and the other backend values when those ledger rows meet. The incremental native source had no additional trial-merge conflicts relative to Ultra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant