From 5d11a79dca057ef905fe73669a333dfe52b3abf1 Mon Sep 17 00:00:00 2001 From: pascallinxweiler Date: Sat, 24 Oct 2026 18:59:47 +0200 Subject: [PATCH] docs: KL of the oneMKL prefill path against the exact reference Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1 --- docs/SYCL_PROGRESS.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/SYCL_PROGRESS.md b/docs/SYCL_PROGRESS.md index f19487ed..2d82e68c 100644 --- a/docs/SYCL_PROGRESS.md +++ b/docs/SYCL_PROGRESS.md @@ -626,6 +626,13 @@ tok/s at 2584 tokens (unchanged). | givens_dense_quant | 0.74 | 0.52 | the register-DPAS form at every row count (one pass instead of copy, batch GEMM, quantiser) | | rmsnorm_quant_fp8 | 0.30 | 0.16 | a row's values kept in registers, only the squares in local memory (more rows a Xe core). Exact | +KL against the exact-kernel reference (the 250-position corpus in 64-token chunks, as above): the +set as of `ea38ec6` **KLD mean 0.0040, top-1 94.0%, PPL ratio 0.997**; with `XE2_NO_MKL=1` 0.0037, +96.8% (the earlier 0.0035-0.0037). oneMKL's GEMM itself is f32-accurate (rel_l2 1.5e-7 against a +double reference on random fp16 data, probe `mklp.cpp`); both forms carry the same fp16 rounding of +the activation, so this is a different set of near-ties tipping (7 of 250 top-1 positions), not a +less accurate GEMM. Kept for the 2.4x faster prefill GEMMs; noted for the user's judgement. + **Prefill, 1882 tokens: 131 -> 324 tok/s** (device time ~14.3 -> ~5.8 s). Left: the GEMMs 1.66 s (oneMKL ~1.2 of it), attention 0.99 (the SIMT flash kernel, ~1.6 TFLOPS), the chunk scan 0.92, givens 0.52, conv_prep 0.47, kkt 0.33, gated_quant 0.27 (half of it libref's double exp: 15 G/s on