radiance 1.13.0

New models:
- Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls
- M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% ->
  92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints
- Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by
  default; Ornith-1.5-122B compose files

Speed:
- Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default):
  the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13%
- Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a
  step at 25-41K context), and the prefill KV split for small launches (a short turn over a long
  context decodes the other sequences 27% faster in that step)
- MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows:
  TranslateGemma +2-5% at 2-8 streams)
- ParoQuant int4/int5 tiled GEMMs 6-9% faster
- Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one
  that ends its requests, and the MTP head's first draft no longer collapses after short chats in
  the prefix cache

Features:
- --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3)
- MiniMax-H3: reference media and keyframe conditioning with the VAE encoders
- Krea 2 rebalance presets balanced, detail and subtle
- The dashboard's request history; a stall watch that reports a frozen step's thread and stack
- rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's
  per-layer embeddings read ahead off the step path
- A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container

Fixes:
- The two-rank all-reduce checks that a peer's push has landed before reducing it
- z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit
- MiniMax-H3's modulation rows

Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is
--weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT,
R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone.
This commit is contained in:
Deadcode committed 2026-10-27 16:47:35 +01:00
198 files changed
+20904 -3240

No files matched your search

+52
View File
@@ -60,6 +60,11 @@ struct SchedMetrics {
* expert slab (`kv_bytes_carved` in bytes). The smallest over the paged groups, which share
* one token axis; windowed groups are excluded, since their carve bounds lookback, not fit. */
int64_t kv_tokens_max = 0;
/* KV streaming: the rings' depth over every streamed group, and the resolve's cumulative misses
* and bytes copied in from the host mirrors. Zero when nothing streams. */
int64_t kv_resident_blocks = 0;
int64_t kv_stream_misses = 0;
int64_t kv_stream_bytes_in = 0;
double prefix_hit_rate = 0.0; /* 0..1 */
/* Cumulative prefix-cache evictions. They rise as reusable prefixes are dropped, while
@@ -568,6 +573,46 @@ public:
virtual int prepare(MediaKind k, const std::vector<uint8_t>& bytes, const MediaOpts& opts,
std::shared_ptr<mm::Item>* out, std::string* why) = 0;
/* A frame the caller decoded, for the vision tower: a keyframe resized to the output canvas,
* so the tower sees the same pixels the video VAE is handed. Unsupported where the tower cannot
* read host-built frames. */
virtual int prepare_frame(const mm::Frame& f, std::shared_ptr<mm::Item>* out,
std::string* why) {
(void)f; (void)out;
if (why) *why = "this server cannot show a pre-decoded frame to the vision tower";
return RAD_E_UNSUPPORTED;
}
/* Media for a video generator's VAE encoders, as mm::Processor::encoder_image and the rest
* make them; unsupported without a processor. */
virtual int encoder_image(const uint8_t* bytes, size_t n, int32_t ratio, int32_t max_side,
mm::Frame* out, std::string* why) {
(void)bytes; (void)n; (void)ratio; (void)max_side; (void)out;
if (why) *why = "this server prepares no reference media for a video encoder";
return RAD_E_UNSUPPORTED;
}
virtual int encoder_image_canvas(const uint8_t* bytes, size_t n, int32_t w, int32_t h,
bool cover, mm::Frame* out, std::string* why) {
(void)bytes; (void)n; (void)w; (void)h; (void)cover; (void)out;
if (why) *why = "this server prepares no reference media for a video encoder";
return RAD_E_UNSUPPORTED;
}
virtual int encoder_video(const uint8_t* bytes, size_t n, int32_t ratio, int32_t max_side,
int32_t max_frames, std::vector<mm::Frame>* out, std::string* why) {
(void)bytes; (void)n; (void)ratio; (void)max_side; (void)max_frames; (void)out;
if (why) *why = "this server prepares no reference media for a video encoder";
return RAD_E_UNSUPPORTED;
}
virtual int encoder_audio(const uint8_t* bytes, size_t n, int32_t rate, int64_t max_samples,
std::vector<float>* out, std::string* why) {
(void)bytes; (void)n; (void)rate; (void)max_samples; (void)out;
if (why) *why = "this server prepares no reference media for an audio encoder";
return RAD_E_UNSUPPORTED;
}
/* Audio in two halves, for a route that cuts a long recording into clips itself
* (/v1/audio/transcriptions): the file decoded to mono samples at audio_rate(), at most
* `max_samples` of them (RAD_E_INVAL past that, never a silent cut), and a clip of at most
@@ -722,9 +767,16 @@ struct VideoGenInfo {
int64_t sample_rate = 0, channels = 0;
int64_t default_steps = 0, max_steps = 0, max_lanes = 1;
bool fixed_steps = false; /* a trained schedule: max_steps grid points and no other */
/* The schedule shifts a request that names none runs (RadVideoGenDecl). */
double shift_video = 0.0, shift_audio = 0.0;
/* A latent upscaler: the largest factor (0: none) and the full-size evaluations by default. */
double upscale_max = 0.0;
int64_t upscale_refine = 0;
/* Reference conditioning (RadVideoGenDecl): the reference pictures, videos and soundtracks a
* request may carry (a video's own soundtrack counts with the video), and the encoders' bounds
* the server fits media to; `max_enc_side` 0 means no video encoder, so no keyframes either. */
int64_t max_ref_images = 0, max_ref_videos = 0, max_ref_audios = 0;
int64_t max_enc_frames = 0, max_enc_side = 0, max_enc_samples = 0, enc_ratio = 0;
/* `steps` counts model evaluations rather than sigma grid points (RadVideoGenDecl form 1). */
bool step_evals = false;
/* Guidance (RadVideoGenDecl::guidance): the terms a request may name, their defaults and the