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-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-11-03 18:09:49 +01:00
2026-10-16 18:25:18 +02:00
2026-11-03 19:07:34 +01:00
2026-10-30 22:01:01 +01:00
2026-11-03 19:05:30 +01:00
2026-11-03 19:05:30 +01:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-11-03 19:05:30 +01:00
2026-11-03 19:05:30 +01:00
2026-10-20 23:07:33 +02:00
2026-10-16 18:25:18 +02:00
2026-10-30 22:01:01 +01:00
2026-10-31 07:50:43 +01:00
2026-10-27 18:15:58 +01:00
2026-10-19 15:34:15 +02:00
2026-10-30 10:23:09 +01:00
2026-10-29 12:04:24 +01:00
2026-10-28 23:44:38 -04:00
2026-10-28 02:37:49 -04:00
2026-11-03 19:08:58 +01:00
2026-11-03 19:02:52 +01:00
2026-10-28 13:50:16 +01:00
2026-10-23 11:57:52 +02:00
2026-11-03 18:09:49 +01:00
2026-10-28 23:44:38 -04: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-30 22:01:01 +01:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-20 21:05:16 +02:00
2026-10-23 11:57:52 +02:00
2026-10-28 12:48:13 +01:00
2026-10-22 11:06:34 +02:00
2026-10-22 11:06:34 +02:00
2026-10-30 15:02:09 +01:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-10-31 07:50:43 +01:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00
2026-10-25 12:09:29 +01:00
2026-10-25 10:55:27 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-30 22:01:01 +01:00
2026-10-23 11:57:52 +02:00
2026-10-29 00:28:47 -04:00
2026-10-30 22:01:01 +01:00
2026-10-12 11:46:14 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 20:52:09 -05:00
2026-10-20 21:05:16 +02:00
2026-11-03 19:02:52 +01:00
2026-10-29 00:50:14 -04:00
2026-10-16 18:25:18 +02:00
2026-10-20 21:05:16 +02:00
2026-10-29 00:44:13 -04:00
2026-10-16 18:25:18 +02:00
2026-10-28 00:33:55 -04:00
2026-10-16 18:25:18 +02:00
2026-10-22 11:06:34 +02:00
2026-10-04 12:02:41 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 23:44:38 -04:00
2026-10-12 11:46:14 +02:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 09:47:42 -03:00
2026-10-30 09:47:42 -03:00
2026-10-30 10:22:53 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-20 07:04:01 +00:00
2026-10-04 12:02:41 +02:00
2026-10-26 09:17:48 +01:00
2026-10-24 13:12:28 +02:00
2026-10-30 09:47:42 -03:00
2026-10-30 09:47:42 -03:00
2026-10-16 18:25:18 +02:00
2026-11-02 18:35:02 +01:00
2026-10-20 07:04:01 +00:00
2026-10-16 18:25:18 +02:00
2026-10-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-10-20 21:05:16 +02:00
2026-10-20 21:05:16 +02:00
2026-10-21 09:26:17 +02:00
2026-10-19 10:41:22 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 12:48:13 +01:00
2026-10-26 15:22:39 +01: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-23 11:57:52 +02:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-11-03 19:07:34 +01:00
2026-10-28 12:49:18 +01:00
2026-10-20 07:06:18 +00:00
2026-11-03 19:05:30 +01:00
2026-10-29 12:04:24 +01:00
2026-10-30 21:32:03 -05:00
2026-11-03 19:05:30 +01:00
2026-10-27 16:47:35 +01:00
2026-11-02 18:35:02 +01:00
2026-11-02 18:35:02 +01:00
2026-11-02 18:35:02 +01:00
2026-10-19 20:13:47 +02:00
2026-11-03 19:07:34 +01:00
2026-11-03 19:08:58 +01:00
2026-11-03 19:08:58 +01:00
2026-11-03 19:08:58 +01:00
2026-11-03 19:08:58 +01:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-27 18:37:28 +01:00
2026-10-27 18:37:28 +01:00
2026-10-30 22:01:01 +01:00
2026-10-21 01:00:13 +02:00
2026-10-16 18:25:18 +02:00
2026-10-29 16:23:28 +01:00
2026-10-18 11:38:37 +02:00
2026-10-29 13:45:18 -04:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-11-03 19:07:34 +01:00
2026-10-19 10:36:27 +02:00
2026-10-16 18:25:18 +02:00
2026-10-24 13:12:28 +02:00
2026-10-31 07:50:43 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-31 07:50:43 +01:00
2026-10-28 12:37:10 +01:00
2026-10-31 07:50:43 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-27 18:34:32 +01:00
2026-10-16 18:25:18 +02:00