Archived
Counter blocks: the per-(stream, output) counter blocks of the fp8a8 split-K finisher (split_ctr), the gated delta-net conv (ru_conv_ctr), the mxfp4a8 decode GEMM and the hc mix are zeroed with hipMemset, which queues on HIP's null stream and returns before it lands. The engine launches on queues of its own that need not wait for that stream, so the first launch on a new block could run beside its own zeroing: a split-K finisher counting arrivals while the memset reset the count gives that one launch a wrong output. r4d_moe.hip's router counters and the all-reduce's IPC allocations already wait; these four now do too (hipDeviceSynchronize, once per block). Seen as a greedy reply that differed on the first request of a freshly started 31B DFlash2 server (2 of 13 fresh starts on 4x R9700, 2026-10-17; every later request matched): the drafter's fp8a8 GEMMs take split_ctr blocks on their first launch, and a draft that differs moves the verify blocks, whose rounding the target's greedy choice can feel at a near-tie. No value changes otherwise. Weight transfers: resolve_weight puts the mover's `ready` wait on the issuing lane's stream, but remembered the generation it waited on per weight for the whole context. A weight resolved first on lane 1 then had its wait on lane 1 only, and the lane-0 GEMM resolving it next skipped its own and could read the slot before the copy landed. The Gemma 4 26B-A4B's dense arm is such a weight: a decode step issues it on lane 1, beside the routed arm, and an overlapped prefill on lane 0. waited_gen_ is now per lane, one record for each of the context's two lanes (set_lane admits 0 and 1 only), indexed by lane_ like the other per-lane state: at worst one more stream wait. Inert where no transfer is in flight (static weights, the 31B on four cards); it matters wherever weights stream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>