radiance 1.9.0

New models:
- LTX-2.5 (base and distilled): video with a stereo soundtrack from text or from text and a first
  frame, on one card, with its duration head, tiled VAE decoding, the diffusion decoder and the x2
  latent upsampler
- Krea 2 Raw and Turbo, and FLUX.3 [klein] and its base: text to image, and for FLUX.3 edits from up
  to ten reference pictures, on one card
- GLM-5.3-Flash from AMD's Quark MXFP4 export, on eight cards (John McDonough, Nunze)
- Gemma 3 / TranslateGemma 27B with an optional DFlash2 drafter (mici81)

Engine:
- --kv-cache-dtype fp8_v4 and k6_v4 for Gemma 3 and Qwen3.8-Flash-Next (mici81)
- the rotated int8 trunk (i8a8h) for Qwen3.8-27B (eddie168168)
- eight-rank all-reduce bands, weighted shards and pieces (Nunze); --host-headroom-mib (sfjes)
- the dashboard shows the single-stream decode floor and its most recent window (Memoria)

Fixes: prefix-cache reservations kept until their save lands (baKon), tool calls in Responses
namespaces (#119), system messages merged when a template refuses several (#137), a prefill
continued with no open step (#127), calibration of a Gram accumulation (#122), JSON Schema patterns
read unanchored (davetha), GLM-style tool calls, the KV floor counting every sequence's state.
Plugin ABI 24.
This commit is contained in:
Deadcode committed 2026-10-19 21:58:07 +02:00
1 parent 778cbf315e
commit 685ec5bd85
136 files changed
+18917 -3821

No files matched your search

+30
View File
@@ -1043,6 +1043,36 @@ TEST(a_dotted_integer_is_an_index_as_in_jinja2) {
CHECK_EQ(p.prompt, std::string("hi|assistant"));
}
/* A template that takes one system message, first, as many do, against conversations the Chat
* Completions API allows: a system message after a user turn, and two at the head. They are
* rendered with the system messages merged, in order, into one at the head (#137). Any other
* refusal comes back in the template's own words, without the parser-generation wrapper. */
TEST(system_messages_a_template_takes_only_first_are_merged_at_the_head) {
ChatTemplate t;
CHECK_OK(t.load(
"{%- for m in messages %}"
"{%- if m.role == 'system' and not loop.first %}"
"{{- raise_exception('System message must be at the beginning.') }}{%- endif %}"
"{%- if m.role == 'user' and m.content == 'boom' %}{{- raise_exception('no boom') }}{%- endif %}"
"<{{ m.role }}>{{ m.content }}</{{ m.role }}>"
"{%- endfor %}{%- if add_generation_prompt %}<assistant>{% endif %}", "", ""));
ChatOptions opt;
opt.quiet = true;
auto render = [&](const json& msgs, ChatPrompt* p) { return t.apply(msgs, json(), opt, p); };
ChatPrompt a, b, c, d;
CHECK_OK(render(json::parse(R"([{"role":"system","content":"s"},{"role":"user","content":"hi"}])"), &a));
CHECK_EQ(a.prompt, std::string("<system>s</system><user>hi</user><assistant>"));
CHECK_OK(render(json::parse(R"([{"role":"user","content":"hi"},{"role":"system","content":"s"}])"), &b));
CHECK_EQ(b.prompt, std::string("<system>s</system><user>hi</user><assistant>"));
CHECK_OK(render(json::parse(R"([{"role":"system","content":"s1"},{"role":"system",
"content":[{"type":"text","text":"s2"}]},{"role":"user","content":"hi"}])"), &c));
CHECK_EQ(c.prompt, std::string("<system>s1\n\ns2</system><user>hi</user><assistant>"));
CHECK(render(json::parse(R"([{"role":"system","content":"s"},{"role":"user","content":"boom"}])"),
&d) < 0);
CHECK(d.error.find("no boom") != std::string::npos);
CHECK(d.error.find("Unable to generate parser") == std::string::npos);
}
/* Unparseable Jinja (common in hand-built containers) is reported at load time as an error value;
* a throw would cross the bringup path. */
TEST(a_template_that_does_not_parse_is_a_value_and_not_a_throw) {