Archived
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:
1 parent
469441d90f
commit
a4845834ea
10 files changed
+106
-31
No files matched your search
@@ -449,7 +449,10 @@ int r4d_ar_gather_hc_write(long peer_scratch, long my_scratch, long peer_flags,
|
||||
int nt = (int)nthreads;
|
||||
if (nt < 64) nt = 64;
|
||||
if (nt > 1024) nt = 1024;
|
||||
/* Zeroed whole, padding included: the struct is passed by value, so its tail padding is
|
||||
* kernel-argument bytes too, and a recorded pass's audit compares those bytes. */
|
||||
R4dArGather G;
|
||||
std::memset(&G, 0, sizeof G);
|
||||
G.ye = (const unsigned short*)ye;
|
||||
G.ew = (const unsigned short*)ew;
|
||||
G.sorted = (const int*)sorted;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
//
|
||||
// The IPC helpers live in r4d_ar_oneshot_2rank_exact.hip; this unit links beside it.
|
||||
#include "r4d.h"
|
||||
#include <cstring>
|
||||
#include "r4d_ar_wide.h"
|
||||
#include "r4d_ar_hc.h" // the gather and hc write words, shared with the two-rank fused forms
|
||||
#include <stdexcept>
|
||||
@@ -521,7 +522,10 @@ static void ar_gather_hc_write_wide_launch(
|
||||
r4d_ar_check_extent(peer_flags[i], flag_bytes, "ar_gather_hc_write", "peer flags");
|
||||
}
|
||||
|
||||
/* Zeroed whole, padding included: the struct is passed by value, so its tail padding is
|
||||
* kernel-argument bytes too, and a recorded pass's audit compares those bytes. */
|
||||
R4dArGather G;
|
||||
std::memset(&G, 0, sizeof G);
|
||||
G.ye = (const unsigned short*)ye;
|
||||
G.ew = (const unsigned short*)ew;
|
||||
G.sorted = (const int*)sorted;
|
||||
|
||||
Reference in new issue
Block a user