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

+93
View File
@@ -76,6 +76,9 @@ static const Flag g_flags[] = {
"of the chunk step's time, auto:SHARE in SHARE of it (0-4];\n"
"0 lets every step carry a chunk; served default auto:1\n"
"(0 under --deterministic, KL mode, generators)" },
{ "--mixed-step-target-ms", "N", "soft duration target in milliseconds for a mixed prefill/decode\n"
"step. The scheduler learns an aggregate prefill cap from\n"
"completed mixed steps; 0 (default) is off" },
{ "--preempt-wait-ms", "N", "how long a preempted prefill may wait for the whole-\n"
"recompute gate before reclaiming cache blocks and\n"
"preempting the lowest-priority running request; 0\n"
@@ -336,6 +339,25 @@ static const Flag g_flags[] = {
{ "--kld-lora-sources", "PREFIX", "--kld-lora only for documents whose source starts with PREFIX; the\n"
" rest run as the base, in the same steps (a mixed batch)" },
{ "--diagnose", "DIR", "instead of serving, run a fixed workload on this engine and write\n"
" diagnose.json and diagnose.md to DIR: decode by prompt category,\n"
" a concurrency sweep, a prefill sweep with decode at each depth and\n"
" a prompt arriving into running streams -- step times, tokens a\n"
" step, draft acceptance, TTFT, emission intervals, jitter. Prompts\n"
" are salted so the prefix cache serves none of them" },
{ "--diagnose-tokens", "N", "tokens a --diagnose decode stream generates (default 256)" },
{ "--diagnose-runs", "N", "measured runs of every --diagnose point, after one unmeasured (default 3)" },
{ "--diagnose-concurrency", "LIST", "stream counts of the concurrency sweep, comma-separated (default\n"
" 1,2,4,8; counts above --max-num-seqs are skipped and reported)" },
{ "--diagnose-prefill", "LIST", "prompt lengths of the prefill sweep in tokens, comma-separated\n"
" (default 1024,4096,16384,65536; lengths the context cannot hold\n"
" are skipped and reported)" },
{ "--diagnose-corpus", "FILE", "JSONL of category prompts, one {\"category\", \"messages\" or \"prompt\",\n"
" \"max_tokens\"?} a line; default: a built-in set of code, reasoning,\n"
" prose, json, file_edit and summarization prompts" },
{ "--diagnose-baseline", "FILE", "an earlier diagnose.json of the same workload: compare every request's\n"
" tokens with it and fail the run on any difference (parity)" },
{ "--debug-graph", nullptr, "print the entire declared graph and exit-quality detail" },
{ "--debug-selection", nullptr, "print the selection table" },
{ "--debug-placement", nullptr, "print the placement plan" },
@@ -443,6 +465,25 @@ static bool parse_int(const char* flag, const char* v, int64_t lo, int64_t hi, i
return true;
}
/* A comma-separated list of whole numbers (--diagnose-concurrency, --diagnose-prefill). An empty
* element, a trailing comma or a value out of range refuses the list rather than dropping it. */
static bool parse_int_list(const char* flag, const char* v, int64_t lo, int64_t hi,
std::vector<int>* out) {
std::vector<int> got;
const char* p = v;
for (;;) {
const char* comma = std::strchr(p, ',');
const std::string one(p, comma ? (size_t)(comma - p) : std::strlen(p));
int64_t n = 0;
if (!parse_int(flag, one.c_str(), lo, hi, &n)) return false;
got.push_back((int)n);
if (!comma) break;
p = comma + 1;
}
*out = std::move(got);
return true;
}
/* Sampler defaults are checked against the request range (server::sampler_value_ok) at startup;
* an out-of-range default would 400 every request that omits the field. */
static bool sampler_num(const char* flag, const char* field, const char* v, double* out) {
@@ -589,6 +630,7 @@ int config_parse(int argc, char** argv, Config* c) {
}
else if (!parse_int(a.c_str(), v, 0, 64, &c->prefill_interleave)) return RAD_E_INVAL;
}
else if (S("--mixed-step-target-ms")) { if (!num(0, 60000, &c->mixed_step_target_ms)) return RAD_E_INVAL; }
else if (S("--preempt-wait-ms")) { if (!num(0, INT64_MAX, &c->preempt_wait_ms)) return RAD_E_INVAL; }
else if (S("--max-num-seqs")) { if (!num(1, INT64_MAX, &c->max_seqs)) return RAD_E_INVAL; }
else if (S("--max-model-len")) { if (!num(0, INT64_MAX, &c->max_ctx)) return RAD_E_INVAL; }
@@ -1090,6 +1132,29 @@ int config_parse(int argc, char** argv, Config* c) {
c->calib_layer_hi = hi;
}
else if (S("--kld-out")) { if (!(v = need(i))) return RAD_E_INVAL; c->kld_out = v; }
else if (S("--diagnose")) { if (!(v = need(i))) return RAD_E_INVAL; c->diagnose = v; }
else if (S("--diagnose-tokens")) {
if (!(v = need(i))) return RAD_E_INVAL;
int64_t n = 0;
if (!parse_int(a.c_str(), v, 2, 1 << 20, &n)) return RAD_E_INVAL;
c->diagnose_tokens = (int)n;
}
else if (S("--diagnose-runs")) {
if (!(v = need(i))) return RAD_E_INVAL;
int64_t n = 0;
if (!parse_int(a.c_str(), v, 1, 100, &n)) return RAD_E_INVAL;
c->diagnose_runs = (int)n;
}
else if (S("--diagnose-concurrency")) {
if (!(v = need(i))) return RAD_E_INVAL;
if (!parse_int_list(a.c_str(), v, 1, 4096, &c->diagnose_concurrency)) return RAD_E_INVAL;
}
else if (S("--diagnose-prefill")) {
if (!(v = need(i))) return RAD_E_INVAL;
if (!parse_int_list(a.c_str(), v, 16, 1 << 24, &c->diagnose_prefill)) return RAD_E_INVAL;
}
else if (S("--diagnose-corpus")) { if (!(v = need(i))) return RAD_E_INVAL; c->diagnose_corpus = v; }
else if (S("--diagnose-baseline")) { if (!(v = need(i))) return RAD_E_INVAL; c->diagnose_baseline = v; }
else if (S("--kld-lora")) { if (!(v = need(i))) return RAD_E_INVAL; c->kld_lora = v; }
else if (S("--kld-lora-sources")) { if (!(v = need(i))) return RAD_E_INVAL; c->kld_lora_sources = v; }
else if (S("--debug-graph")) { c->debug_graph = true; c->debug_selection = true; }
@@ -1219,6 +1284,19 @@ int config_parse(int argc, char** argv, Config* c) {
return RAD_E_INVAL;
}
/* ONE MODE A RUN. Each replaces serving with its own driver, so two given together would have
* to pick one silently; --debug-graph returns before either runs. */
if (!c->diagnose_mode() && (!c->diagnose_corpus.empty() || !c->diagnose_baseline.empty())) {
RAD_ERR("--diagnose-corpus and --diagnose-baseline belong to the --diagnose workload; give "
"--diagnose DIR as well");
return RAD_E_INVAL;
}
if (c->diagnose_mode() && (c->kld() || c->calib() || c->debug_graph)) {
RAD_ERR("--diagnose runs its own workload; it cannot be combined with --kld-record, --kld-ref, "
"--calib-corpus or --debug-graph");
return RAD_E_INVAL;
}
/* Runtime LoRA: the slot flags need slots, the named adapters must fit them, and KL mode's
* adapter is one of them. */
{
@@ -1352,6 +1430,8 @@ const ShowRow kShow[] = {
return c.prefill_interleave > 0 ? num(c.prefill_interleave)
: c.prefill_interleave < 0 ? "auto:" + std::to_string(c.prefill_interleave_share)
: std::string("off"); } },
{ "--mixed-step-target-ms", [](const Config& c) {
return c.mixed_step_target_ms > 0 ? num(c.mixed_step_target_ms) : std::string("off"); } },
{ "--preempt-wait-ms", [](const Config& c) { return num(c.preempt_wait_ms); } },
{ "--max-num-seqs", [](const Config& c) { return num(c.max_seqs); } },
{ "--max-model-len", [](const Config& c) {
@@ -1502,6 +1582,19 @@ const ShowRow kShow[] = {
{ "--kld-out", [](const Config& c) { return or_none(c.kld_out, "none"); } },
{ "--kld-lora", [](const Config& c) { return or_none(c.kld_lora, "none (the base)"); } },
{ "--kld-lora-sources", [](const Config& c) { return or_none(c.kld_lora_sources, "every document"); } },
{ "--diagnose", [](const Config& c) { return or_none(c.diagnose, "off (serve)"); } },
{ "--diagnose-tokens", [](const Config& c) { return num(c.diagnose_tokens); } },
{ "--diagnose-runs", [](const Config& c) { return num(c.diagnose_runs); } },
{ "--diagnose-concurrency", [](const Config& c) {
std::string s;
for (int n : c.diagnose_concurrency) s += (s.empty() ? "" : ",") + num(n);
return s; } },
{ "--diagnose-prefill", [](const Config& c) {
std::string s;
for (int n : c.diagnose_prefill) s += (s.empty() ? "" : ",") + num(n);
return s; } },
{ "--diagnose-corpus", [](const Config& c) { return or_none(c.diagnose_corpus, "the built-in set"); } },
{ "--diagnose-baseline", [](const Config& c) { return or_none(c.diagnose_baseline, "none"); } },
{ "--debug-graph", [](const Config& c) { return onoff(c.debug_graph); } },
{ "--debug-selection", [](const Config& c) { return onoff(c.debug_selection); } },
{ "--debug-placement", [](const Config& c) { return onoff(c.debug_placement); } },