Repository navigation
xpu: a Gen12LP server builds without the Qwen3.8-27B runner, and nem_prow gets an 8 x 4 image (stacked on #1673) - #1692
Conversation
|
Thanks @jschmied. This needs a rebase onto current main, which now serves Gemma 4 E4B on the XPU lane host ( |
99604ac to
6018304
Compare
|
Thanks @ashhart. Rebased onto main and pushed:
Gemma 4 without DPAS. Yes, it is left out like the 27B runner. With Checks
Two things on main, not from this PR:
|
…E4B out, and nem_prow gets a 4 x 4 tile image for Gen12LP The Qwen3.8-27B runner and Gemma 4 E4B need DPAS, 2D block loads and nGEN, so `zig build xpu-native -Dxpu-device=tgllp` could not build. With -Dxpu-dpas=false the server is built without both, lists only the families it built, and refuses qwen3_5 and gemma4 naming DPAS; a bmg build is unchanged and still carries them. nem_prow.cl's PR and PO become overridable; the new image nem_prow_t4 (-DPR=4 -DPO=4) spills about 25 registers on Gen12LP where the 8 x 8 pdense spills about 210. The 14 existing bmg images stay byte-equal to main.
A sweep of nem_prow's PR and PO over {2, 4, 8} on Iris Xe (LFM3-1.7B prefill, 1,024 tokens, windows of
32, 64 and 128 rows) puts 8 prompt rows by 4 outputs a sub-group first: about 8 % above 4 x 4, while
PO 8 spills (8 x 8: about 210 registers, 4 x 8: about 575) and runs 2 to 10 times slower. The image is
renamed for what it is for; every pdense output sums as before, so the bits do not change. The 14
existing bmg images stay byte-equal to main.
6018304 to
94a823d
Compare
|
Thank you @jschmied. 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. |
|
Thanks @jschmied! This is in TensorFold 1.2.2, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.2 |
Problem
After #1673,
zig build xpu-spirvworks for Gen12LP (Iris Xe, DG1), butzig build xpu-native -Dxpu-device=tgllpstill fails, on main as well. The Qwen3.8-27B XPU runner is always compiled into the server, and its kernels need DPAS, 2D block loads and the nGEN headers.Change
-Dxpu-dpas=falseleaves it out. DPAS builds are unchanged: bmg'sxpu-nativebuilds with it, 34.1 MB against 29.3 MB without.nem_prow: gets a Gen12LP prompt image,nem_prow_gen12, with 8 × 4 tiles (-DPO=4).A sweep on Iris Xe at a 1,024-token prompt, 2 runs per cell (prefill tok/s):
8 × 4 at windows of 128 beats 4 × 4 at 64 by 8 % in an interleaved A/B (84.4 / 84.0 / 85.2 against 77.4 / 78.6 / 78.6 tok/s), and the output is byte-equal.
Checks
xpu-native -Dxpu-device=tgllpbuilds; thenem_attn_decop test passes.nem_prow_gen12is the one new image.zig build test, the contract, golden, security and fuzz steps pass;git diff --checkis clean.Stacked on #1673.