libxe2, arch/common: the 28 Oct pending set, the bf16 cast fused, the vectorized norm, a draft-vocab prefix

- gdn_kkt_solve on DPAS (~0.4 ms at 2048 tokens against 7.7), the int8 head's DPAS forms at 9-16
  rows (verify past depth 7), the plain block norm (RadBuildCtx::plain_norm, set on the SYCL
  backend: `add` + `rmsnorm` where no reader takes the E4M3 codes) with the fast rmsnorm rows.
- rmsnorm's bf16 rows up to 8192 wide: a work-item eight elements by one 16-byte load (the generic
  form walked 20 dependent loads a work-item): 24.7 -> 3.3 us a decode norm, ~3.5 ms a round.
- w4a16: a bf16 activation narrowed to fp16 at the kernel's own load (the separate cast launch
  before every GEMM is gone), bit for bit the same.
- RADIANCE_MTP_DRAFT_VOCAB=N: the 2-bit draft head over the vocabulary's first N ids (a prefix
  shortlist, GRIMOIRE's idea); the u2 layout hook takes an op N below the weight's rows. 131072:
  greedy acceptance identical on the decode proxy, draft head 650 -> 351 us a pass.

KL against the exact-kernel reference (2002 positions): 0.002386, top-1 97.30% (was 0.002376 /
96.80%). Decode proxy (greedy, depth 5, mtp4): 72.0 -> 74.3 tok/s with the prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-11-02 01:52:01 +01:00
1 parent 7580ec3d17
commit 726e532114
18 files changed
+472 -54

No files matched your search

+1
View File
@@ -134,6 +134,7 @@ ABI_FIELD(RadBuildCtx, calib_layer_hi)
ABI_FIELD(RadBuildCtx, calib_tokens)
ABI_FIELD(RadBuildCtx, gen_max_pixels)
ABI_FIELD(RadBuildCtx, gen_max_refs)
ABI_FIELD(RadBuildCtx, plain_norm)
ABI_STRUCT(RadAudioGenBatch)
ABI_FIELD(RadAudioGenBatch, n_lane)
ABI_FIELD(RadAudioGenBatch, lane)
+10
View File
@@ -295,6 +295,16 @@ typedef struct RadBuildCtx {
* fixed buffers ignores them, and the core says so at startup. */
int64_t gen_max_pixels;
int64_t gen_max_refs;
/* ---- appended in the SYCL fork (the plain block norm) */
/* Nonzero: where no reader of a block norm's output takes its E4M3 code pair (every reader a
* 4-bit or plain bf16 projection, which reads the bf16 plane), the plugin may run the norm as
* `add` (the residual stored first, as `rmsnorm_quant_fp8` stores it) then `rmsnorm`: the same
* bf16 values, without codes nobody reads. The engine sets it on the SYCL backend, whose
* quantising norm is bound by libref's ordered sum of squares while its `rmsnorm` is a fast
* row (docs/SYCL_PROGRESS.md); 0 elsewhere, so other backends declare what they did.
*
* Trailing and zero-defaulted, so a plugin built against the older struct is unchanged. */
int plain_norm;
} RadBuildCtx;
/* ================================================================== control vectors */