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

+64 -1
View File
@@ -359,6 +359,17 @@ std::vector<Case> build_cases() {
add("attn_dense", { HI("M", 24), HI("head_dim", 64), HI("gqa", 1), HI("causal", 0),
HS("dtype", dt), HF("scale", 0.125), HI("max_seqlen", 24),
HI("block", 7) });
/* Cross attention: each entry's keys a run of their own, both sides of `causal`. */
for (const char* dt : { "f32", "bf16" })
for (int causal : { 0, 1 })
add("attn_cross", { HI("M", 24), HI("head_dim", 64), HI("gqa", 2),
HI("causal", causal), HS("dtype", dt), HF("scale", 0.125) });
/* Neighborhood attention: a 4 x 4 x 4 volume (the description's), windows narrower and as wide
* as its axes. */
for (const char* dt : { "f32", "bf16" })
for (int kw : { 3, 4 })
add("attn_na3d", { HI("M", 64), HI("head_dim", 64), HI("kt", 3), HI("kh", 3),
HI("kw", kw), HS("dtype", dt) });
for (const char* dt : { "f32", "bf16" })
add("seg_sinusoid", { HI("M", 30), HI("n", 64), HI("period", 13), HS("dtype", dt) });
/* Gemma 4's audio attention: left 12, over segments longer than the window. */
@@ -698,10 +709,16 @@ std::vector<Case> build_cases() {
EB(7, 645, dt[0] == 'f' ? 4 : 2, 3));
add("gate_add", { HI("M", 7), HI("n", 645), HS("dtype", dt), HS("act", "none") },
EB(7, 645, dt[0] == 'f' ? 4 : 2, 3));
add("table_add", { HI("M", 3), HI("n", 645), HI("L", 5), HS("dtype", dt) });
add("mix_rows", { HI("M", 7), HI("n", 645), HI("k", 12), HS("dtype", dt) });
for (const char* mode : { "denorm", "norm" })
for (int var : { 0, 1 })
add("chan_stats", { HI("M", 7), HI("n", 645), HS("mode", mode), HI("var", var),
HF("eps", 1e-4), HS("dtype", dt) });
for (int gated : { 1, 0 })
add("ln_mod_quant_fp8", { HI("M", 5), HI("n", 256), HF("eps", 1e-6), HI("group", 128),
HI("gated", gated), HS("dtype", dt) });
for (int round : { 1, 0 })
for (int round : { 3, 2, 1, 0 })
add("timestep_embed", { HI("M", 3), HI("n", 256), HF("scale", 1000.0),
HF("max_period", 10000.0), HI("round", round),
HS("dtype", dt) });
@@ -776,6 +793,17 @@ std::vector<Case> build_cases() {
HS("dtype", dt) });
add("rms_mod_quant_fp8", { HI("M", 5), HI("n", 256), HF("eps", 1e-5), HI("group", 128),
HI("gated", gated), HS("dtype", dt) });
/* A zero-centred gain (1 + w), the norm and gain rounded once (Krea 2's). */
add("rms_mod", { HI("M", 7), HI("n", 645), HF("eps", 1e-5), HI("gated", gated),
HS("dtype", dt), HF("wadd", 1.0), HI("norm_once", 1) });
add("rms_mod_quant_fp8", { HI("M", 5), HI("n", 256), HF("eps", 1e-5), HI("group", 128),
HI("gated", gated), HS("dtype", dt), HF("wadd", 1.0),
HI("norm_once", 1) });
/* A LayerNorm without a gain (FLUX's). */
add("rms_mod", { HI("M", 7), HI("n", 645), HF("eps", 1e-6), HI("gated", gated),
HS("dtype", dt), HS("norm", "layer") });
add("rms_mod_quant_fp8", { HI("M", 5), HI("n", 256), HF("eps", 1e-6), HI("group", 128),
HI("gated", gated), HS("dtype", dt), HS("norm", "layer") });
}
add("flow_x0_step", { HI("M", 9), HI("n", 645), HS("dtype", dt) });
for (int pt : { 1, 4 })
@@ -833,6 +861,37 @@ std::vector<Case> build_cases() {
add("flow_renoise", { HI("M", 9), HI("n", 96), HI("stream", 1), HS("dtype", "f32") });
add("flow_renoise", { HI("M", 5), HI("n", 645), HI("stream", 7), HS("dtype", "f32") });
/* LTX-2: the video's 3-axis rotary (two padded pairs, a rank's second head), the cross
* attentions' 1-axis one, the per-head gate and the guided step. */
for (const char* dt : { "f32", "bf16" }) {
add("rope_split", { HI("M", 7), HI("n_head", 3), HI("head_dim", 128), HI("dim", 4096),
HI("n_dims", 3), HF("theta", 10000.0), HS("max", "20 2048 2048"),
HI("head0", 1), HS("dtype", dt) });
add("rope_split", { HI("M", 5), HI("n_head", 4), HI("head_dim", 64), HI("dim", 256),
HI("n_dims", 1), HF("theta", 10000.0), HS("max", "20"),
HS("dtype", dt) });
add("head_gate", { HI("M", 7), HI("n_head", 5), HI("head_dim", 64), HS("dtype", dt) });
add("ltx_guide", { HI("M", 9), HI("n", 128), HS("dtype", dt) });
add("pixel_norm", { HI("M", 26), HI("n", 96), HF("eps", 1e-6), HS("form", "rsqrt"),
HI("ileave", 13), HF("mult", 3.7), HS("dtype", dt) });
add("pixel_norm", { HI("M", 7), HI("n", 256), HF("eps", 1e-8), HS("form", "div"),
HS("act", "silu"), HS("dtype", dt) });
add("d2s3d", { HI("M", 27), HI("C", 5), HI("st", 2), HI("sh", 2), HI("sw", 2),
HS("dtype", dt) });
add("s2d3d", { HI("M", 27), HI("C", 4), HI("st", 2), HI("sh", 1), HI("sw", 1),
HI("tpre", 1), HS("mode", "copy"), HS("dtype", dt) });
add("s2d3d", { HI("M", 64), HI("C", 6), HI("st", 2), HI("sh", 2), HI("sw", 2),
HI("group", 4), HS("mode", "mean"), HI("add", 1), HS("dtype", dt) });
add("pix_patch", { HI("M", 12), HI("p", 4), HI("C", 3), HS("dtype", dt) });
add("patch_pix8", { HI("M", 12), HI("p", 4), HI("C", 3), HS("dtype", dt) });
add("stft_logmel", { HI("M", 6), HI("hop", 80), HI("nfft", 512), HI("n_mel", 64),
HI("ch", 2), HS("dtype", dt) });
add("bwe_up", { HI("M", 600), HI("ratio", 3), HI("ch", 2), HS("dtype", dt) });
add("tile_crop", { HI("M", 125), HI("C", 7), HS("dtype", dt) });
add("tile_stitch", { HI("M", 4000), HI("tile", 4), HI("stride", 3), HI("scale", 2),
HI("p", 4), HI("C", 3), HS("dtype", dt) });
}
/* Video sparse attention over the cubes libref describes: a 3 x 3 x 3 grid in boxes of 2
* after two dense segments of as many rows (P 8, V 8; sparsity 0.8 keeps 2), with and without
* the coarse operands; and MiniMax-H3's boxes of 4 at patch 2 over a 10 x 5 x 5 grid after
@@ -967,9 +1026,13 @@ std::vector<Case> build_cases() {
add("frame_store", { HI("M", 4), HI("n_codes", 3), HI("stride", 5), HI("rep", 1),
HI("skip", 1) });
add("iota", { HI("M", 645), HI("start", 3), HI("step", 2) });
add("tile_grid", { HI("M", 9), HI("tile", 16), HI("stride", 14) });
add("vol_index", { HI("M", 125) });
add("iota", { HI("M", 7), HI("start", -5), HI("step", 1) });
add("cu_repeat", { HI("M", 5), HI("mult", 3) });
add("cu_repeat", { HI("M", 9), HI("mult", 1) });
add("int_affine", { HI("M", 4), HS("src", "0 -1 2 1"), HS("mul", "2 0 8 4"),
HS("add", "-1 7 -7 -3") });
/* ================================================================== speed-only, at model size
*