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

+62 -2
View File
@@ -315,6 +315,43 @@ typedef struct RadGenBatch {
int32_t dec_lane;
int32_t dec_height, dec_width; /* pixels */
int32_t dec_preview; /* the lane's preview latent, not its state */
/* ---- the joint layout (RAD_GEN_LAYOUT_JOINT_STEP)
* COND: `branch` is 0 for the prompt and 1 for the negative prompt, and `n_lane` / `lane_h` /
* `lane` name every lane the conditioning's images run in; the plugin keeps the
* conditioning's row r for lane l at its own row (2 l + branch) cond_rows + r. The prompt's
* last `n_pad` tokens are the padding, and `valid_cu` is {0, the tokens before it}. `rope_f`
* is the conditioning's positions, [4, rows] f32 component-major.
* DENOISE: each entry's rows are its conditioning and then its image's latent tokens, so
* `cu_seqlens` bounds both together. `src` [n_tok] names a row's source: >= 0 the plugin's
* conditioning row (as above), < 0 the image row -(1 + k) of the compact image order, in
* which `img_cu` [n_seq + 1] bounds each entry's image and `img_rows` [n_img] is each image
* row's place in the pass. `mode_cu` [3 n_seq + 1] cuts each entry into its text (padding
* included), its reference pictures and its image: entry e's text is rows [mode_cu[3e],
* mode_cu[3e + 1]), its pictures [mode_cu[3e + 1], mode_cu[3e + 2]), its image up to
* mode_cu[3e + 3]. `rope_f` is [4, n_tok]. Everything sigma, cfg, pair, lane, flags and seed
* say is per entry as for JOINT_GRID, and the lane ops read `img_cu`. */
int32_t branch;
int32_t n_pad;
const int32_t* valid_cu;
int64_t n_img;
const int32_t* img_cu;
const int32_t* img_rows;
const int32_t* mode_cu;
const float* rope_f;
/* DENOISE: the rows again in mode-major order -- every entry's text, then every entry's
* pictures, then every entry's image (the compact image order) -- for a model whose early
* blocks run each mode on its own. `mode_rows` [n_tok] is each one's place in the pass,
* `mode_src` [n_tok] its source as `src` names it, and `mode_rope_f` holds the positions mode
* by mode, mode m's a dense [4, n_m] block at 4 times its start;
* `n_mode_h` [3] counts each mode's rows, so mode m starts at the sum of the counts before
* it, and `mode_ccu` [3, n_seq + 1] bounds each entry's rows of each mode from that start
* (mode m's cu_seqlens at mode_ccu + m (n_seq + 1), each beginning at 0). */
const int32_t* mode_rows;
const int32_t* mode_src;
const int32_t* mode_ccu;
const int64_t* n_mode_h;
const float* mode_rope_f;
} RadGenBatch;
/* An entry's flags on a DENOISE pass. */
@@ -450,7 +487,8 @@ typedef struct RadVideoGenBatch {
/* f32 [6]: the video's timestep, sigma and next sigma, then the soundtrack's. */
const float* sched;
const float* pos; /* f32 [3, n_tok]: RAD_VPOS_STEP */
/* u32 [2, 2]: the video's noise seed and the soundtrack's, low word first. */
/* u32 [2, 2]: the video's noise seed and the soundtrack's, low word first (VSTEP, VUPSCALE and
* VDECODE passes; a decoder that denoises draws from it). */
const uint32_t* seed;
/* ---- VDECODE */
@@ -468,6 +506,24 @@ typedef struct RadVideoGenBatch {
* soundtrack's) the latents are re-noised to; `seed` is a step's. */
RadVideoGeom geom_from;
const float* upscale; /* f32 [1]: the factor the network is told */
/* ---- appended in ABI 24 */
/* VCOND with a negative prompt: `n_neg` of the pass's tokens, after the prompt's. */
int32_t n_neg;
/* The request's guidance, f32 [8] host: the video's scale, its spatio-temporal scale, its
* modality scale and its rescale, then the soundtrack's four; a model's own defaults where
* the request named none. */
const float* guidance_h;
/* VCOND with a first frame (RadVideoGenDecl::image_cond): `image` [height, width, 3] bf16 in
* [-1, 1], device; null without one. Every later pass carries `has_image` 1 for such a
* request. */
const uint16_t* image;
int32_t has_image;
/* guidance_h on the device, f32 [8], for ops that read the terms. */
const float* guidance;
/* VDECODE: the decoder the request named (RadVideoGenDecl::decoders), its index; 0 the
* default. */
int32_t decoder;
} RadVideoGenBatch;
/* RadVideoGenBatch::geom_d. The request's latent geometry, then a VDECODE pass's chunk: the latent
@@ -483,7 +539,11 @@ enum {
* first three are also the source volume; (frames, H, W) the target volume; then both in
* patches, (frames, h / patch, w / patch) and (frames, H / patch, W / patch). */
RAD_VGEOM_UP_SRC = 16, RAD_VGEOM_UP_DST = 21, RAD_VGEOM_UP_PSRC = 24, RAD_VGEOM_UP_PDST = 27,
RAD_VGEOM_N = 32
/* The soundtrack's latents as a volume of single latents, (n_audio, 1, 1); and the video's
* rows cut at its first latent frame, {0, that frame's patches, every patch} (a first frame
* a model conditions on at its own timestep). */
RAD_VGEOM_AUDIO_VOL = 32, RAD_VGEOM_FIRST_CU = 35,
RAD_VGEOM_N = 40
};
/* ================================================================== operands */