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

+41 -2
View File
@@ -263,6 +263,13 @@ static bool alias_reasoning(const ojson& messages, ojson* out) {
}
return v;
};
/* A call that takes no arguments, as clients replay it: null, or the empty or blank string a
* client stores from a stream that sent none. */
auto no_arguments = [](const ojson& a) {
return a.is_null() ||
(a.is_string() && a.get_ref<const std::string&>().find_first_not_of(" \t\r\n") ==
std::string::npos);
};
auto needs = [&](const ojson& m) {
if (!m.is_object()) return false;
const auto rc = m.find("reasoning_content");
@@ -283,7 +290,7 @@ static bool alias_reasoning(const ojson& messages, ojson* out) {
if (!call.is_object()) continue;
const auto fn = call.find("function");
if (!call.contains("type") || fn == call.end() || !fn->is_object() ||
!fn->contains("arguments") || fn->at("arguments").is_null())
!fn->contains("arguments") || no_arguments(fn->at("arguments")))
return true;
}
return false;
@@ -336,7 +343,7 @@ static bool alias_reasoning(const ojson& messages, ojson* out) {
call.erase("name");
call.erase("arguments");
}
} else if (!fn->contains("arguments") || fn->at("arguments").is_null()) {
} else if (!fn->contains("arguments") || no_arguments(fn->at("arguments"))) {
(*fn)["arguments"] = "{}";
}
}
@@ -344,6 +351,33 @@ static bool alias_reasoning(const ojson& messages, ojson* out) {
return true;
}
/* The first replayed call whose arguments are a string that is not JSON, as
* "messages[i].tool_calls[j].function.arguments is not JSON: <why>", or empty when every call's
* arguments parse. The template refuses such a conversation with the parser's words alone, which reads as
* the template's fault; this names the call. */
static std::string bad_arguments(const ojson& messages) {
if (!messages.is_array()) return "";
for (size_t i = 0; i < messages.size(); ++i) {
const ojson& m = messages[i];
const auto tcs = m.is_object() ? m.find("tool_calls") : m.end();
if (!m.is_object() || tcs == m.end() || !tcs->is_array()) continue;
for (size_t j = 0; j < tcs->size(); ++j) {
const ojson& tc = (*tcs)[j];
const auto fn = tc.is_object() ? tc.find("function") : tc.end();
if (!tc.is_object() || fn == tc.end() || !fn->is_object()) continue;
const auto args = fn->find("arguments");
if (args == fn->end() || !args->is_string()) continue;
try {
(void)ojson::parse(args->get_ref<const std::string&>());
} catch (const std::exception& e) {
return "messages[" + std::to_string(i) + "].tool_calls[" + std::to_string(j) +
"].function.arguments is not JSON: " + e.what();
}
}
}
return "";
}
int ChatTemplate::apply(const ojson& messages, const ojson& tools, const ChatOptions& opt,
ChatPrompt* out) const {
if (!ready()) {
@@ -430,6 +464,11 @@ int ChatTemplate::apply(const ojson& messages, const ojson& tools, const ChatOpt
}
}
if (!served) {
if (const std::string bad = bad_arguments(msgs); !bad.empty()) {
if (!opt.quiet) RAD_WARN("chat: request did not parse: %s", bad.c_str());
out->error = bad;
return RAD_E_INVAL;
}
const std::string w = template_words(e.what());
if (!opt.quiet) RAD_WARN("chat: the model's chat template refused the request: %s",
w.c_str());