docs: the int4 W4A16 Qwen3.8-27B on the B65 -- bring-up, kernels, checks, the round's profile, BetterBench 46.4 / 490

SYCL_PROGRESS.md: the gdn fusion and row_topk commits, the repository's move (build trees, venv,
fonts.conf), the w4a16 model's kernels and their checks, the ESIMD compiler's mad fusion, how to
measure on this model (unitrace's v2-adapter blind spot, the v1 adapter, --profile-ops, the
BetterBench proxy), where a decode round goes, the acceptance analysis, next steps. README: the
current numbers and to-dos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-10-28 01:19:14 +01:00
1 parent 13c64a3d78
commit dd0ee312a4
2 files changed
+109 -16

No files matched your search

+20 -15
View File
@@ -21,27 +21,33 @@ To support the development of radiance: [Patreon](https://patreon.com/StillDeadC
## Intel GPU backend (SYCL)
Target: Arc Pro B65 (`intel_gpu_bmg_g31`, 32 GB), oneAPI 2026.2. Main test model:
`Qwen3.8-27B-DFLASH2-PARO-M2XFP4` (m2xfp4 weights, gated DeltaNet + full attention, DFlash2
Target: Arc Pro B65 (`intel_gpu_bmg_g31`, 32 GB), oneAPI 2026.2. Main test model (from
2026-10-27): `qwen3.8-27b-w4a16-rtn` (Qwen3.8-27B, int4 W4A16 trunk, int8 head, gated DeltaNet + full
attention, MTP drafter); before it `Qwen3.8-27B-DFLASH2-PARO-M2XFP4` (m2xfp4 weights, DFlash2
drafter). Reference point: vLLM-SYCL on the same class of model, ~90 tok/s decode and ~1200 tok/s
prefill. The full log, measurements and decisions are in
[`docs/SYCL_PROGRESS.md`](docs/SYCL_PROGRESS.md); the design is in
[`docs/SYCL_PORTING.md`](docs/SYCL_PORTING.md).
**Current numbers** (Qwen3.8-27B M2XFP4, one sequence, BetterBench quick runs):
**Current numbers** (Qwen3.8-27B, one sequence, BetterBench quick runs):
| | decode tok/s | prefill tok/s (~2000 tokens) |
|---|---|---|
| first bring-up | 0.1 | 68 |
| now (`8af007c`) | 35-37 | 341-349 |
| M2XFP4, first bring-up | 0.1 | 68 |
| M2XFP4 (`2a5e815`) | 53.2 | 355 |
| W4A16 RTN, first run (`e85124c`) | 44.9 | 301 |
| W4A16 RTN now (`13c64a3`) | 46.4 | 490 |
| vLLM-SYCL reference | ~90 | ~1200 |
MiniCPM5-2B bf16: decode 51.8 tok/s, prefill 1576 tok/s.
**Done**
- A SYCL device backend in the engine and the `libxe2` kernel library: every op MiniCPM5-2B and
Qwen3.8-27B M2XFP4 need, each with an exact form that matches libref bit for bit
(`XE2_EXACT=1` selects them all).
- A SYCL device backend in the engine and the `libxe2` kernel library: every op MiniCPM5-2B,
Qwen3.8-27B M2XFP4 and Qwen3.8-27B W4A16 need, each with an exact form that matches libref bit for
bit (`XE2_EXACT=1` selects them all).
- W4A16 (int4 with zero points): weights tiled at load; decode GEMMs on fp16 DPAS, prefill GEMMs on
int8 DPAS with the u4 codes as the B operand (libref's result bit for bit), the int8 head in
ESIMD; prefill attention on DPAS (flash attention).
- Fast kernels checked against libref with `rad-kbench` (1410/1410 fixture cases) and on live
operands with the engine's op oracle; end to end held to a KL bound against the exact kernels.
- Decode: m2xfp4 GEMV, 8-row verify GEMMs, the logits and 2-bit draft heads, the Givens rotation
@@ -53,13 +59,12 @@ MiniCPM5-2B bf16: decode 51.8 tok/s, prefill 1576 tok/s.
profiler (`scripts/sycl/profile_decode.sh`).
**To do**
- [ ] Decode: the 8-row m2xfp4 verify GEMMs (~60 ms of a ~112 ms speculative round, ~2.5x their
bandwidth floor).
- [ ] Decode: the DeltaNet update, the norms' ordered-sum floor, the draft head's group terms.
- [ ] Prefill: attention on the matrix engine with the keys shared across query heads (now ~1.0 s
of a 1900-token prefill), or oneDNN's SDPA.
- [ ] Prefill: a matrix-engine form of the DeltaNet chunk scan (0.9 s), the m2xfp4 decode to fp16
ahead of the GEMM, kkt, gated_quant.
- [ ] Decode (W4A16): the 4-row verify GEMMs (~27.6 of a ~58 ms round; floor ~22.7), the MTP
drafter's bf16 GEMVs, the norms' ordered-sum floor, the narrow bf16 GEMV, fused casts; then the
speculation depth. MTP accepts ~0.75 a position here, so 90 tok/s also needs model-side help
(a calibrated quant, an int4 MTP block).
- [ ] Prefill (W4A16): the DeltaNet ops (~2 s of a 2234-token prefill: chunk scan, kkt, conv,
gated norm) on the matrix engine, the w4a8i8 GEMMs past ~75 int8 TOPS, gated_quant's double exp.
- [ ] A KL check of the speculative (8-row) path, which the KL tool's 64-token chunks do not reach.
- [ ] Batched serving (several sequences) on the fast paths; most fast paths assume one sequence.
- [ ] Phase 5: README/Docker image for the Intel build, more model families.