radiance 2.1.0

New models. Recursive Flint (39.8B, about 2.5B active) by everplays (#422): `arch/flint`, as an
IQ8R container with rotated int8 experts or a four-bit one, with a sink-aware WMMA prefill
attention and the fused attention prologue at `rotary_dim` 0. Meta Muse Glimmer 30B by
launch80_assets (#423): bf16, an int4 trunk or IQ8R, its windowed vision tower, its DFlash
drafter, the ATEM tool dialect and context extension. Ling-3.0-tiny by RikshaDriver (#441):
served from its GGUF releases or as IQ8R on `bailing_hybrid`, with six more libr3d kernels. Block
FP8, MXFP4 and NVFP4 conversions of the three are not served. IQ8R containers of all three
(round to nearest, no calibration) are on Hugging Face under StillDeadcode: flint-iq8r,
muse-glimmer-30b-iq8r-dflash and ling-3.0-tiny-iq8r. They were checked for sane answers on two
R9700; nothing was benchmarked, and Muse Glimmer's pictures, video and tool calls were not tried.

Speech. Breeze-TTS-2 clones a voice from a reference recording and its transcript, with an
optional delivery direction, by farcryjohn (#436). The published Breeze container needs
converting again with the updated recipe before it can.

Tools. A model entry with `diagnose: DIR` runs a fixed workload on the engine instead of serving
and writes a report: step times, tokens a step, draft acceptance, TTFT and prefill rates by
category, concurrency and prompt length, and with `diagnose-baseline` a token-for-token comparison
against an earlier report (docs/DIAGNOSE.md), by Code000 (#418).

Scheduler. `mixed-step-target-ms` holds a mixed prefill and decode step to a service time, off by
default, by tnhnyzc (#413). `scheduler.stuck-exit` (60s by default, 0 never) ends the process when
the device has advanced nothing for that long, so a restart policy brings a hung server back
(#409, #415, #428).

Fixed. Draft trees with the int8 KV cache, which stopped Gemma 4 31B with DFlash2 on its first
request (#454, diagnosed by aelfwyne). The expert loan held at zero by a few leftover cache blocks
after long sessions (#455, diagnosed by thekk1). The mapped tier's pages kept in the page cache
across a load and a restore, by C_Tamas (#421). Replayed tool calls with blank arguments, and
arguments that are not JSON refused naming the call, by dschmitz (#444). The dashboard's card
temperature reads the junction sensor, by dschmitz (#453). The VRAM shortfall report says what the
KL mode needs, by baKon (#448). The out-of-tree plugin test builds its plugins in parallel and
takes its toolchain from the tree.

Plugin ABI 40: out-of-tree plugins need to be rebuilt.

Thanks to @everplays, @launch80_assets, @RikshaDriver, @farcryjohn, @Code000, @tnhnyzc, @C_Tamas, @dschmitz, @baKon, @aelfwyne and @thekk1.
This commit is contained in:
Deadcode committed 2026-11-15 16:00:05 +01:00
1 parent ddcb9c69bb
commit 2a2b756371
166 files changed
+20749 -327

No files matched your search

+88 -2
View File
@@ -43,9 +43,14 @@ struct SchedMetrics {
* (Scheduler::step_next). Every other step leaves the card idle during the host's commit and
* staging. */
int64_t steps_ahead = 0;
/* Prefill chunks capped to leave room for decode rows or a waiting admission in the same
* step (--busy-prefill-chunk). Zero under `off`. */
/* Prefill chunks capped to leave room for other work in the same step, by the fixed busy
* policy or the adaptive mixed-step target. */
int64_t prefill_chunks_capped = 0;
/* --mixed-step-target-ms: mixed steps observed, those over their target, and the current
* seeded or learned aggregate prefill-row cap (0 when the policy is disabled). */
int64_t mixed_step_target_steps = 0;
int64_t mixed_step_target_misses = 0;
int64_t mixed_step_target_prefill_cap = 0;
/* Cumulative nanoseconds spent inside steps, total and for decode steps only. Wall time over
* a step count is not a step time: it charges idle gaps between requests to steps and mixes
@@ -213,4 +218,85 @@ private:
double mean_ = 0.0; /* the rejection reference */
};
/* Feedback controller for --mixed-step-target-ms. Completed mixed-step service time includes the
* forward and drafter work, but not queueing or HTTP transport. Scale rows by target/observed when the
* target is missed; grow only after three representative steps below 95% of the target and by at
* most a quarter of the measured headroom. A one-quantum probe lets a conservative cap recover
* when fixed decode cost makes proportional scaling alone predict no larger legal chunk.
*
* The controller is deliberately model-agnostic. It may take a cap below an expert stager's
* throughput floor: satisfying an explicitly requested latency target while decoders are active
* is the point of the flag. With the flag off no caller consults it. */
struct MixedStepTarget {
void reset() { cap_ = 0; good_ = 0; }
/* A new server has no mixed-step timing yet. Begin at a conservative fraction of that
* model's declared mixed-step capacity instead of allowing one unbounded calibration miss;
* subsequent observations replace or grow this seed exactly like any learned cap. */
void seed(int64_t rows, int64_t quantum, int64_t max_rows) {
if (rows <= 0 || max_rows <= 0) return;
const int64_t q = quantum > 0 ? quantum : 1;
max_rows = std::max<int64_t>(q, max_rows / q * q);
rows = std::max<int64_t>(q, rows / q * q);
cap_ = std::min(rows, max_rows);
good_ = 0;
}
void observe(int64_t rows, int64_t ns, int64_t target_ns, int64_t quantum,
int64_t max_rows, bool representative = true) {
if (rows <= 0 || ns <= 0 || target_ns <= 0 || max_rows <= 0) return;
const int64_t q = quantum > 0 ? quantum : 1;
max_rows = max_rows / q * q;
if (max_rows < q) max_rows = q;
long double scaled = (long double)rows * (long double)target_ns / (long double)ns;
int64_t want = scaled >= (long double)max_rows ? max_rows : (int64_t)scaled;
want = want / q * q;
if (want < q) want = q;
if (cap_ == 0) {
cap_ = want;
good_ = 0;
return;
}
if (ns > target_ns) {
good_ = 0;
/* A prompt tail did not exercise a reusable limit. A checkpoint, fixed busy cap or
* other policy boundary still leaves the prompt unfinished and is representative:
* reducing this controller below that boundary can shorten the next mixed step. */
if (!representative) return;
/* A representative miss corrects immediately. */
if (want < cap_) cap_ = want;
return;
}
/* A short tail did not exercise the cap and cannot justify growing it. Near-target steps
* reset the recovery streak; three clearly fast full-cap samples earn one probe. */
if (!representative || ns * 20 >= target_ns * 19 || cap_ >= max_rows) {
good_ = 0;
return;
}
if (++good_ < 3) return;
good_ = 0;
const int64_t goal = std::max<int64_t>(want, std::min(max_rows, cap_ + q));
int64_t grow = (goal - cap_) / 4;
if (grow < q) grow = q;
cap_ = cap_ + grow;
cap_ = cap_ / q * q;
if (cap_ > goal) cap_ = goal;
if (cap_ > max_rows) cap_ = max_rows;
}
int64_t cap() const { return cap_; }
int64_t limit(int64_t budget, int64_t quantum) const {
if (cap_ <= 0 || budget <= 0) return budget;
const int64_t q = quantum > 0 ? quantum : 1;
const int64_t c = cap_ / q * q;
return c > 0 && c < budget ? c : budget;
}
private:
int64_t cap_ = 0;
int good_ = 0;
};
} /* namespace rad */