Archived
docs: KL of the oneMKL prefill path against the exact reference
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
1 parent
ea38ec68a2
commit
5d11a79dca
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user