radiance 1.0.12

- Wrong answers under concurrency on models with gated delta net layers (Qwen3.8-Flash-Next,
  Qwen3.8-27B, Qwen3.6-35B-A3B). A conv state slot was one entry wider in the allocation than in
  the state the kernels index, so clearing the slot a newly admitted request was given -- and a
  prefix-cache checkpoint's save and restore -- reached into the next request's conv and n-gram
  windows. A request decoding beside an admission then lost part of its recent context: a right
  first token followed by a context-free continuation ("1. **Identify the numbers..." for "What
  is 65 times 3?"), repeated or skipped digits. A single request was never affected. One
  definition of the slot now, and the server refuses to start if the allocation and the kernels
  ever disagree on it. Present since 1.0.0; reported with a strict concurrent sanity check.
- --num-speculative-tokens 0 no longer stops the engine at the first multi-sequence decode step:
  an all-reduce argument struct's padding was uninitialised, and a recorded pass's audit read it
  as a changed argument.
This commit is contained in:
Deadcode committed 2026-10-05 18:27:23 +02:00
1 parent 469441d90f
commit a4845834ea
10 files changed
+106 -31

No files matched your search

+4 -4
View File
@@ -399,8 +399,9 @@ int BatchBuilder::layout(Program& prog, const Config& cfg) {
if (max_ctx_ <= 0) max_ctx_ = cfg.max_tok;
/* The conv rolling window: width-1 entries of history plus room for the whole speculative
* window, because a verify writes num_spec+1 conv outputs before anything is accepted, and a
* rejection then reads back at the slot the last accepted token left (spec §10). */
* window, and a rejection then reads back at the slot the last accepted token left (spec §10).
* The state tensor's own extent (conv_window_entries), so the cursor derived from it stays
* inside the slot the kernels index. */
conv_window_.assign(prog.kv_groups.size(), 1);
conv_group_ = -1;
n_conv_ = 0;
@@ -410,8 +411,7 @@ int BatchBuilder::layout(Program& prog, const Config& cfg) {
++n_conv_;
conv_group_ = n_conv_ == 1 ? (int32_t)i : -1; /* -1 once there is more than one */
if (g.decl.conv_width > 0)
conv_window_[i] = (int32_t)(g.decl.conv_width - 1 +
(cfg.n_spec > 0 ? cfg.n_spec : 0) + 1);
conv_window_[i] = (int32_t)conv_window_entries(g.decl, cfg.n_spec);
}
/* ------------------------------------------------------------ derived buffers */