radiance 2.1.0

New models. Recursive Flint (39.8B, about 2.5B active) by everplays (#422): `arch/flint`, as an
IQ8R container with rotated int8 experts or a four-bit one, with a sink-aware WMMA prefill
attention and the fused attention prologue at `rotary_dim` 0. Meta Muse Glimmer 30B by
launch80_assets (#423): bf16, an int4 trunk or IQ8R, its windowed vision tower, its DFlash
drafter, the ATEM tool dialect and context extension. Ling-3.0-tiny by RikshaDriver (#441):
served from its GGUF releases or as IQ8R on `bailing_hybrid`, with six more libr3d kernels. Block
FP8, MXFP4 and NVFP4 conversions of the three are not served. IQ8R containers of all three
(round to nearest, no calibration) are on Hugging Face under StillDeadcode: flint-iq8r,
muse-glimmer-30b-iq8r-dflash and ling-3.0-tiny-iq8r. They were checked for sane answers on two
R9700; nothing was benchmarked, and Muse Glimmer's pictures, video and tool calls were not tried.

Speech. Breeze-TTS-2 clones a voice from a reference recording and its transcript, with an
optional delivery direction, by farcryjohn (#436). The published Breeze container needs
converting again with the updated recipe before it can.

Tools. A model entry with `diagnose: DIR` runs a fixed workload on the engine instead of serving
and writes a report: step times, tokens a step, draft acceptance, TTFT and prefill rates by
category, concurrency and prompt length, and with `diagnose-baseline` a token-for-token comparison
against an earlier report (docs/DIAGNOSE.md), by Code000 (#418).

Scheduler. `mixed-step-target-ms` holds a mixed prefill and decode step to a service time, off by
default, by tnhnyzc (#413). `scheduler.stuck-exit` (60s by default, 0 never) ends the process when
the device has advanced nothing for that long, so a restart policy brings a hung server back
(#409, #415, #428).

Fixed. Draft trees with the int8 KV cache, which stopped Gemma 4 31B with DFlash2 on its first
request (#454, diagnosed by aelfwyne). The expert loan held at zero by a few leftover cache blocks
after long sessions (#455, diagnosed by thekk1). The mapped tier's pages kept in the page cache
across a load and a restore, by C_Tamas (#421). Replayed tool calls with blank arguments, and
arguments that are not JSON refused naming the call, by dschmitz (#444). The dashboard's card
temperature reads the junction sensor, by dschmitz (#453). The VRAM shortfall report says what the
KL mode needs, by baKon (#448). The out-of-tree plugin test builds its plugins in parallel and
takes its toolchain from the tree.

Plugin ABI 40: out-of-tree plugins need to be rebuilt.

Thanks to @everplays, @launch80_assets, @RikshaDriver, @farcryjohn, @Code000, @tnhnyzc, @C_Tamas, @dschmitz, @baKon, @aelfwyne and @thekk1.
This commit is contained in:
Deadcode committed 2026-11-15 16:00:05 +01:00
1 parent ddcb9c69bb
commit 2a2b756371
166 files changed
+20749 -327

No files matched your search

+39 -2
View File
@@ -92,8 +92,20 @@ enum class Kind { Image, Video, Audio };
* zero rows ahead of its patches, which the tower fills with its class and register
* tokens. Pictures are spelled <img> placeholders </img>; a video one such run a
* tubelet, each after its "Frame i sampled at T seconds and frame i+1 ...: " label,
* runs joined by a newline. Tokens at their positions (NoPE). */
enum class Family { QwenVL, Gemma4, Lfm2, UnlimitedOcr, Glm5Next, Pixtral, Radio };
* runs joined by a newline. Tokens at their positions (NoPE).
* MuseGlimmer Meta's Muse Glimmer 30B: a picture (a video frame the same) resized so both
* sides are multiples of patch * merge and its merged-token count stays under the cap
* (max_image_tokens, a frame max_frame_rows), to the whole-merged-patch grid whose
* aspect is nearest its own (muse_size, no floor band: a small picture is downscaled
* onto the grid). Resized with torchvision's antialiased Lanczos on the uint8 pixels
* (resize_lanczos_torch); values (u / 255 - mean) / std in f32, rounded to bf16. A
* patch row is (frame, channel, y, x), the reference's (temporal, channel), a picture
* duplicated to fill the depth. A picture is spelled <image_start> <|patch|>*N
* <image_end>; a video one <vid_start>, then per temporal group the text `Time: T s`
* and <|video|>*N rows, the groups separated by <|vid_frame_separator|> and closed by
* <vid_end>, T the group's first frame time (the reference stamps a group once, after
* repeating the last frame to a whole group). */
enum class Family { QwenVL, Gemma4, Lfm2, UnlimitedOcr, Glm5Next, Pixtral, Radio, MuseGlimmer };
struct VisionConfig {
Family family = Family::QwenVL;
@@ -116,6 +128,11 @@ struct VisionConfig {
float mean[3] = { 0.5f, 0.5f, 0.5f };
float stdv[3] = { 0.5f, 0.5f, 0.5f };
int32_t tok_image = -1, tok_video = -1, tok_start = -1, tok_end = -1;
/* MuseGlimmer: the video run's own markers, <vid_start>, <vid_end> and the groups'
* <|vid_frame_separator|> (a picture shares tok_start and tok_end). A container that numbers
* them (`video_start_token_id`, `video_end_token_id`, `video_frame_separator_token_id`)
* wins; otherwise the vocabulary resolves the spellings at Processor::init. */
int32_t tok_video_start = -1, tok_video_end = -1, tok_video_sep = -1;
/* Lfm2: the tiling (see Family). `max_segment_patches` is the tower's longest segment. */
int32_t min_tiles = 0, max_tiles = 0, tile = 0;
bool use_thumbnail = false;
@@ -456,11 +473,13 @@ private:
int image_glm5next(const Frame& f, std::shared_ptr<Item>* out, std::string* why) const;
int image_pixtral(const Frame& f, std::shared_ptr<Item>* out, std::string* why) const;
int image_radio(const Frame& f, std::shared_ptr<Item>* out, std::string* why) const;
int image_muse(const Frame& f, std::shared_ptr<Item>* out, std::string* why) const;
int video_radio(const Video& v, std::shared_ptr<Item>* out, std::string* why) const;
/* Lfm2's markers: <|img_thumbnail|>, and <|img_row_R_col_C|> at (R-1) * max_tiles + C-1. */
int32_t tok_thumbnail_ = -1;
std::vector<int32_t> tok_tiles_;
int video_gemma4(const Video& v, std::shared_ptr<Item>* out, std::string* why) const;
int video_muse(const Video& v, std::shared_ptr<Item>* out, std::string* why) const;
VisionConfig cfg_{};
AudioConfig acfg_{};
@@ -494,6 +513,21 @@ std::vector<int64_t> sample_frames_gemma4(const VideoInfo& info, double fps, int
* within `max_patches`, aspect ratio kept (get_aspect_ratio_preserving_size). */
int gemma4_size(int64_t h, int64_t w, int32_t patch, int32_t pool, int64_t max_patches,
int64_t* oh, int64_t* ow, std::string* why);
/* MuseGlimmer's smart_resize (MuseGlimmer{Image,Video}Processor.smart_resize): the whole
* merged-patch grid (`factor` = patch * merge pixels a side, so a grid cell is one output row)
* under `max_tokens` merged tokens whose aspect is nearest the picture's own, in Python's
* doubles. A picture over the cap scales to the cap first. */
int muse_size(int64_t h, int64_t w, int32_t factor, int64_t max_tokens, int64_t* oh, int64_t* ow,
std::string* why);
/* MuseGlimmerVideoProcessor.sample_frames: `total * fps / native` frames, truncated, clamped to
* [temporal, min(num_frames, total)] and floored to a whole temporal group, then torch's
* linspace(0, total - 1, n) truncated to integers. A stream with no stated rate is taken at
* 24 fps. */
std::vector<int64_t> sample_frames_muse(const VideoInfo& info, double fps, int32_t temporal,
int32_t num_frames);
/* Radio's tile for a picture of w x h pixels (NVIDIA's _compute_target_patches, Python's
* round-half-even included) and for a video frame (_compute_target_patches_video), in patches. */
void radio_size(int64_t w, int64_t h, const VisionConfig& c, int32_t* wp, int32_t* hp);
@@ -503,6 +537,9 @@ void radio_video_size(int64_t w, int64_t h, const VisionConfig& c, int32_t* wp,
* filter's overshoot. Separable, width first, as ATen's CPU kernel; a side that keeps its size is
* the identity. */
void resize_bicubic_aa_f32(const Frame& in, int32_t w, int32_t h, std::vector<float>* out);
/* The Muse Glimmer reference's resize filter, torchvision's antialiased Lanczos on the uint8
* pixels (see processor.cpp). */
void resize_lanczos_torch(const Frame& in, int32_t w, int32_t h, Frame* out);
/* PIL's antialiased bicubic resample of packed RGB, bit for bit: fixed-point coefficients, a
* horizontal pass into an 8-bit intermediate and then a vertical one. */
void resize_bicubic(const Frame& in, int32_t w, int32_t h, Frame* out);