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

+44
View File
@@ -16,6 +16,7 @@
#include "rad_philox.h"
#include <cmath>
#include <cstdlib>
#include <cstring>
namespace {
@@ -970,6 +971,17 @@ __global__ __launch_bounds__(kT) void iota_kernel(int* __restrict__ y, int n, in
if (i < n) y[i] = start + (period > 0 ? i % period : i) * step;
}
// y[j] = (src[j] < 0 ? 0 : x[src[j]]) * mul[j] + add[j], the lists by value.
constexpr int kAffMax = 16;
struct IntAffine { int src[kAffMax], mul[kAffMax], add[kAffMax]; };
__global__ __launch_bounds__(kAffMax) void int_affine_kernel(const int* __restrict__ x,
int* __restrict__ y, IntAffine p,
int n) {
const int j = threadIdx.x;
if (j < n) y[j] = (p.src[j] < 0 ? 0 : x[p.src[j]]) * p.mul[j] + p.add[j];
}
__global__ __launch_bounds__(kT) void cu_repeat_kernel(const int* __restrict__ len,
int* __restrict__ y, int n, int mult) {
const int j = blockIdx.x * kT + threadIdx.x;
@@ -1597,6 +1609,38 @@ extern "C" int r4d_rad_iota(const RadArgs* a, RadStream s) {
return st_of(hipGetLastError());
}
namespace {
int parse_ints(const char* s, int* v, int cap) {
int n = 0;
while (s && *s) {
char* e = nullptr;
const long x = std::strtol(s, &e, 10);
if (e == s) break;
if (n == cap) return -1;
v[n++] = (int)x;
s = e;
}
return n;
}
} // namespace
extern "C" int r4d_rad_int_affine(const RadArgs* a, RadStream s) {
const RadTensor *x = r4d_opt(a, 0), *y = r4d_opt(a, 1);
if (!x || !y) return R4D_NO(RAD_E_INVAL);
if (!is_i32(x) || !is_i32(y)) return R4D_NO(RAD_E_DTYPE);
if (!r4d_contig(x) || !r4d_contig(y)) return R4D_NO(RAD_E_STRIDE);
IntAffine p{};
const int n = parse_ints(r4d_gets(a, "src"), p.src, kAffMax);
if (n <= 0 || parse_ints(r4d_gets(a, "mul"), p.mul, kAffMax) != n ||
parse_ints(r4d_gets(a, "add"), p.add, kAffMax) != n || r4d_numel(y) < n)
return R4D_NO(RAD_E_SHAPE);
for (int j = 0; j < n; ++j)
if (p.src[j] >= r4d_numel(x)) return R4D_NO(RAD_E_SHAPE);
hipLaunchKernelGGL(int_affine_kernel, dim3(1), dim3(kAffMax), 0, (hipStream_t)s,
(const int*)x->data, (int*)y->data, p, n);
return st_of(hipGetLastError());
}
extern "C" int r4d_rad_cu_repeat(const RadArgs* a, RadStream s) {
const RadTensor *len = r4d_opt(a, 0), *y = r4d_opt(a, 1);
if (!len || !y) return R4D_NO(RAD_E_INVAL);