radiance 1.0.10

- Four-rank Qwen3.8-Flash-Next (PRs 14 and 16 by keptn42): the all-reduce runs fused with the
  hyper-connection's write, and with the MoE gather in front of it, on decode and verify steps on
  the exact wire. The routed experts are split in four classes, so every rank computes the same
  share; moe_gemm_q_mod4 is the new grouped GEMM. The oracle now checks moe_gemm_q on w4nl and
  w5nl containers.
- --embedding-placement and --ngram-placement, each auto | vram | ram | disk. The token embedding
  can live in the pinned host pool, read in place over the link (from PR 17 by mechkbfan). An n-gram
  table can be copied into locked RAM at load instead of read from the container (from PR 15 by
  keptn42). auto takes the fastest tier with room once every other weight is placed, and startup
  prints what it chose and why. A tier that cannot be honoured stops the start with the reason; the
  embedding on disk and the n-gram table in VRAM are refused, since nothing can serve them.
- The expert_tiered placement no longer spends the pinned host pool twice when it falls back to
  layer offload, and a lossy-wire request for a four-rank fused write is a selection miss rather
  than a startup abort.
This commit is contained in:
Deadcode committed 2026-10-05 14:01:30 +02:00
1 parent 2f56e3c477
commit e466fa07e2
56 files changed
+1804 -761

No files matched your search

+14 -11
View File
@@ -334,17 +334,20 @@ time.
**The fused all-reduce forms are two-rank, except the exact write.** At four ranks `ar_hc_write`
exists on the exact wire only (`ar_hc_write_4rank`, the 4-rank one-shot with the write as its
epilogue, on the plain all-reduce's buffers), and so does `ar_gather_hc_write`
(`ar_gather_hc_write_4rank`, the same with `moe_gather` as its prologue), which the MoE
connections take wherever the step is one MoE pass. A step takes either where the standalone
`all_reduce` would have been the exact one-shot: under 1 MiB, and with `--tp-wire wht6` also
under `--tp-wire-min-kb`. Larger messages, and every lossy one, keep the standalone sequence —
`moe_gather` on the MoE connections, `all_reduce` (4-rank two-shot or ti8), then
`hc_write_bf16`. The unfused sequence is declared beside the fused one, so nothing is unresolved
at boot. The
attention's own fusion is not a collective and does carry over: the sparse decode with the output
gate and the quantiser in its merge (`attn_paged_gate_quant`) has gqa-6, page-4 rows. The per-step cost against tp2 on the
same cards is unmeasured.
epilogue), and so does `ar_gather_hc_write` (`ar_gather_hc_write_4rank`, the same with
`moe_gather` as its prologue), which the MoE connections take wherever the step is one MoE pass.
Both are declared over the rows of a decode or verify step — `--max-num-seqs` × (1 +
`--num-speculative-tokens`) — because a one-shot is for those messages, and a step within that
bound takes them wherever its message goes out exact: always with `--tp-wire exact`, and with
`--tp-wire wht6` under `--tp-wire-min-kb`. They run on an all-reduce instance keyed by that bound,
not on the standalone all-reduce's unless the two bounds agree; the wide family's flag, sequence
and slot discipline is what makes either safe on one stream. A prefill chunk, and every message
that goes out lossy, keeps the standalone sequence — `moe_gather` on the MoE connections,
`all_reduce` (whose size bands pick the 4-rank one-shot or two-shot, or ti8 on the lossy wire),
then `hc_write_bf16`. The unfused sequence is declared beside the fused one, so nothing is
unresolved at boot. The attention's own fusion is not a collective and does carry over: the sparse
decode with the output gate and the quantiser in its merge (`attn_paged_gate_quant`) has gqa-6,
page-4 rows. The per-step cost against tp2 on the same cards is unmeasured.
**One collective does generalise, because it has to.** The lm_head is vocab-sharded, so the sampler
gathers the ranks' candidate sets rather than their logits (`core/sample/sampler.cpp`) and an