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
@@ -285,6 +285,18 @@ struct KVGroupInfo {
|
||||
std::vector<int> layers;
|
||||
};
|
||||
|
||||
/* A RAD_KV_CONV GROUP'S WINDOW, IN ENTRIES: conv_width - 1 of history and one more for every
|
||||
* speculative position. It is the last extent of the state tensor the kernels index, and the
|
||||
* kernels take the layout from that extent -- a slot is `entries` consecutive entries a channel,
|
||||
* and libr4d's conv update derives the verify step's query length from it as
|
||||
* entries - (conv_width - 2). So the allocation's slot, the KV manager's view of a slot (its clear
|
||||
* when one is handed out, a checkpoint's save and restore) and the cursor conv_state_index derives
|
||||
* all take this one number. A slot sized larger on the manager's side than in the tensor puts
|
||||
* each of those views across the start of the next sequence's window. */
|
||||
inline int64_t conv_window_entries(const RadKVGroupDecl& d, int64_t n_spec) {
|
||||
return (d.conv_width > 0 ? d.conv_width - 1 : 0) + (n_spec > 0 ? n_spec : 0);
|
||||
}
|
||||
|
||||
/* Everything declare produced. The core owns it; the plugin only ever sees handles into it. */
|
||||
class Program {
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user