Archived
libxe2: strided cast and libref's sigmoid -- MiniCPM5-2B serves on the B65, greedy-identical
Serving MiniCPM5-2B bf16 on the Arc Pro B65 found two things rad-kbench's dense operands did not: - cast is handed the q slice of the fused qkv row (2048 of every 2560 elements) and refused it, stopping the first step by name. It now walks any strides in libref's offlin order. - gated_quant_fp8 took sigmoid with an f32 exp, within rad-kbench's tolerance but not libref's double exp: now and then an ulp in silu moved the bf16 narrowing and one E4M3 code, in some of the 42 layers, enough to flip a greedy near-tie tokens later. The engine's own op oracle (RADIANCE_OP_ORACLE='*', which runs libref on the operands the device kernel was handed) found it: 9 of 600 issues before, 600 of 600 bit-identical after, over a 26-token prefill. With both, a greedy run on the B65 matches a libref-only host server token for token on all eight prompts of scripts/sycl/greedy_compare.py (64 tokens each), and the top-5 logprobs agree exactly over 96 decode steps. /v1/chat/completions answers coherently, reasoning split out. 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
d0e797844e
commit
8db5b6efff
5 files changed
+120
-11
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ const RadKernelInfo kKernels[] = {
|
||||
.domain = RAD_DOMAIN_DEVICE, .launch = xe2::gather_rows },
|
||||
{ .name = "xe2_cast", .op = "cast", .family = "elem",
|
||||
.computes = "dtype conversion; integer to integer exact",
|
||||
.shape = "contiguous operands",
|
||||
.shape = "any strides (libref's offlin order)",
|
||||
.dtypes = "any float or integer pair",
|
||||
.domain = RAD_DOMAIN_DEVICE, .launch = xe2::cast },
|
||||
|
||||
|
||||
Reference in new issue
Block a user