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/arch
Constantin 1c96558970 Shard Spark across ranks and reduce the f32 residual
Attention takes whole GQA groups, so a world that does not divide the KV head count still gets a
clean cut; above it the KV heads are replicated and a group splits between the ranks sharing its
KV head. Gate/up, down and the tied vocabulary take matching spans, and every query head, FFN
channel and vocabulary row belongs to exactly one rank at every world from 1 to 8.

The projection outputs are partial sums, so each block widens to f32 and issues an exact f32
all_reduce before the residual add, which keeps the single-card accumulation order.

tests/spark25_reference.py --tp N holds the sharded graph against the HF reference on N fake host
devices; the tiny fixture has 8 heads over 4 KV heads and 3584 vocabulary rows so worlds 1-8 all
get a nonempty shard.
2026-11-03 19:08:58 +01:00
..
2026-10-20 21:05:16 +02:00
2026-10-18 11:38:37 +02:00
2026-10-30 22:01:01 +01:00
2026-10-19 21:58:07 +02:00
2026-10-29 12:04:24 +01:00
2026-10-27 16:47:35 +01:00
2026-11-02 18:35:02 +01:00
2026-10-30 22:01:01 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-20 21:05:16 +02:00
2026-10-27 16:47:35 +01:00
2026-10-18 11:38:37 +02:00
2026-10-29 12:04:24 +01:00
2026-10-23 11:57:52 +02:00
2026-10-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 21:05:16 +02:00
2026-10-20 21:05:16 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00