Archived
radiance 1.2.1
- A checkpoint restore that found its snapshot slot given back stopped the engine (#33): a snapshot handed to an admission is now kept until its step has run, a lost one re-prefills that request instead, and a failed restore names the check and the rank. - The headroom warning had no fixed point (#32): it now checks the room left for a kernel's first launch and names the --gpu-headroom-mib value that clears it. - reasoning_effort (#31): the levels the chat template takes are probed at startup and published in /server_info; a level outside them is a 400 on `reasoning_effort` with `supported`; --reasoning-effort-map rewrites a client's level. - rad-convert reads published quantised releases (#29): AMD Quark MXFP4 byte for byte, and AutoRound (auto_round:auto_gptq) / GPTQ int4 and int8, with Flash-Next checkpoints that ship their experts one by one. - tool_choice "required" and a named function are served by a call grammar for the whole reply.
This commit is contained in:
1 parent
e95d397288
commit
d23c3e0d17
37 files changed
+1595
-147
No files matched your search
@@ -117,6 +117,11 @@ struct IKVManager {
|
||||
* it, so the batch builder is its one caller: it keeps the device's copy of a table and
|
||||
* stages only what moved. 0 is always a correct answer -- it restages the whole table. */
|
||||
virtual int64_t take_table_changes(uint64_t seq, int32_t group) const = 0;
|
||||
|
||||
/* THE SNAPSHOT STORE STILL HOLDS `slot`: it was allocated and not given back since. A step
|
||||
* that restores from a slot the store gave back would read another session's state or
|
||||
* nothing, so the scheduler asks before it builds one. */
|
||||
virtual bool checkpoint_held(int32_t slot) const = 0;
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------------ the prefix cache */
|
||||
@@ -307,6 +312,7 @@ struct KVBinding final : IKVManager {
|
||||
int64_t take_table_changes(uint64_t s, int32_t g) const override {
|
||||
return m->take_table_changes(s, g);
|
||||
}
|
||||
bool checkpoint_held(int32_t slot) const override { return m->checkpoint_held(slot); }
|
||||
};
|
||||
|
||||
/* The prefix cache's own lookup takes tokens and content-hashed multimodal keys rather than a
|
||||
|
||||
@@ -1263,8 +1263,23 @@ const RadBatch* Scheduler::step() {
|
||||
}();
|
||||
if (force_mixed && plan_.phase == RAD_PHASE_DECODE) plan_.phase = RAD_PHASE_MIXED;
|
||||
|
||||
/* EVERY SNAPSHOT THIS STEP RESTORES FROM IS STILL IN THE STORE. The prefix cache keeps a
|
||||
* handed-out snapshot's slot until the next step begins (PrefixCache::begin_step), so this
|
||||
* holds by construction; it is checked because a restore from a slot the store gave back
|
||||
* reads another session's state or nothing, and the engine can only stop on it. A step that
|
||||
* finds one is abandoned like a failed staging, below: the request gives its hit back and is
|
||||
* prefilled again, and the rest re-schedule unchanged. */
|
||||
bool lost_restore = false;
|
||||
for (const StepEntry& e : plan_.e) {
|
||||
if (e.ckpt_restore < 0 || kv_->checkpoint_held(e.ckpt_restore)) continue;
|
||||
RAD_ERR("sequence %llu was to resume from checkpoint slot %d, which the store no longer "
|
||||
"holds; its hit is given back and its prompt prefilled again",
|
||||
(unsigned long long)e.seq, (int)e.ckpt_restore);
|
||||
lost_restore = true;
|
||||
}
|
||||
|
||||
step_start_ = std::chrono::steady_clock::now();
|
||||
const RadBatch* b = builder_.build(plan_, *kv_, step_);
|
||||
const RadBatch* b = lost_restore ? nullptr : builder_.build(plan_, *kv_, step_);
|
||||
if (!b) {
|
||||
/* Staging failed. Nothing was computed, so nothing is committed and n_computed did not
|
||||
* advance: the next step re-schedules the same chunks and the KV allocations already made
|
||||
|
||||
Reference in new issue
Block a user