This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/tests
AshlynandClaude Opus 5.5 a378b41abb libr4d: the exact two-shot all-reduce takes every prefill-sized message
R4D_AR_TWOSHOT_WIDE_MAX_ELEMS was 20971520 -- a 4096-token chunk of a 5120-wide residual -- and the
band above it went back to the one-shot, which sends (ws-1)*N bytes a rank where the two-shot sends
2*(ws-1)/ws*N. At the default --max-num-batched-tokens 8192, Gemma 4 26B-A4B's attention reduce is
8192 x 2816 = 23M elements and its feed-forward reduce, which carries both branches for their own
post-norms, 46M: both over the bound, so every full prefill chunk went one-shot at twice the bytes.

--profile-ops on 4x R9700, tp 4, a 20489-token prefill (chunks of 8192, 8192, 4105) fits one link
rate across all of it: the attention reduces 16.8 ms the three calls (two one-shot, one two-shot)
and the feed-forward reduces ~37 ms (all one-shot), 1.6 s of the 2.7 s prefill. The same rate with
every call two-shot is ~9 and ~19 ms: about 0.8 s less a 20k prefill.

The bound guards the kernel's int word offsets and nothing else -- the scratch already holds a
full message per slot (r4d_ar_entry.hip build()), twice what the two-shot uses -- so it is now
2^28 elements, 2^26 words at fp32. The fold is the one-shot's, fp32 in ascending rank order, so
the band edge moves no bits. Fewer bands also means one scratch set less: the old 20971520 band
was its own instance, ~335 MiB a rank at tp 4.

plugin_test: a 16384-token chunk is two-shot to its end, and the one-shot still takes a message
past the bound. r4d_selftest's three-rank pattern walks a 46137344-element message, past the old
ceiling.

Not yet run on the cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 14:40:04 -05:00
..
2026-10-08 18:22:08 +02:00
2026-10-04 12:02:41 +02:00
2026-10-08 18:22:08 +02:00
2026-10-06 14:43:46 +02:00
2026-10-04 12:02:41 +02:00
2026-10-07 12:37:53 +02:00
2026-10-06 14:04:49 +02:00
2026-10-06 14:04:49 +02:00
2026-10-06 14:04:49 +02:00
2026-10-04 12:02:41 +02:00
2026-10-08 18:22:08 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-08 18:22:08 +02:00
2026-10-07 12:37:53 +02:00
2026-10-08 18:22:08 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 12:02:41 +02:00
2026-10-05 14:01:30 +02:00
2026-10-08 18:22:08 +02:00
2026-10-08 18:22:08 +02:00
2026-10-06 14:04:49 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 18:44:29 +02:00
2026-10-04 12:02:41 +02:00
2026-10-04 20:07:08 +02:00
2026-10-04 12:02:41 +02:00
2026-10-05 12:16:54 +02:00
2026-10-08 18:22:08 +02:00
2026-10-07 12:37:53 +02:00