Archived
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:
commit
6645337f69
198 files changed
+20904
-3240
No files matched your search
+40
-2
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
#include "rad_core.h"
|
||||
#include "mm/processor.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cmath>
|
||||
@@ -74,16 +75,51 @@ private:
|
||||
std::string why_;
|
||||
};
|
||||
|
||||
/* A reference medium or a keyframe of a request: a picture, a video, a video's own soundtrack, a
|
||||
* standalone soundtrack, or the first or last frame. `index` is its number within its kind from
|
||||
* 1 (VIDEO_AUDIO i is VIDEO i's soundtrack); a keyframe's is its <Picture N> in the prompt, 1 the
|
||||
* first and 2 the last. */
|
||||
struct VideoRefMedia {
|
||||
enum Kind : int32_t {
|
||||
IMAGE = 0, VIDEO = 1, VIDEO_AUDIO = 2, AUDIO = 3, FIRST_FRAME = 4, LAST_FRAME = 5
|
||||
};
|
||||
Kind kind = IMAGE;
|
||||
int32_t index = 0;
|
||||
std::string name, filename, content_type; /* the form part's */
|
||||
std::string data; /* the file's bytes */
|
||||
|
||||
/* The media as its encoder takes it, decoded by the server, before the driver pads it to the
|
||||
* encoder's clips and hops. A picture's or video's frames, f32 [enc_frames, enc_h, enc_w, 3] RGB
|
||||
* in 0..255: a reference's sides multiples of the VAE's ratio within max_enc_side, aspect
|
||||
* kept, a keyframe at the video's size. A soundtrack, f32 [enc_channels, enc_n] at the
|
||||
* model's rate, a mono one copied to every channel. */
|
||||
std::vector<float> enc_pixels;
|
||||
int32_t enc_frames = 0, enc_h = 0, enc_w = 0;
|
||||
std::vector<float> enc_samples;
|
||||
int64_t enc_n = 0;
|
||||
int32_t enc_channels = 0;
|
||||
};
|
||||
|
||||
struct VideoRequest {
|
||||
std::vector<int32_t> tokens; /* the prompt, rendered and tokenised */
|
||||
int32_t width = 0, height = 0; /* pixels, within the declaration's limits */
|
||||
int32_t chunks = 0; /* the length in chunks (RadVideoGenDecl) */
|
||||
int32_t steps = 0; /* sigma grid points; 0: the model's default */
|
||||
/* RAD_SAMPLER_* (abi/rad_runtime.h). */
|
||||
int32_t sampler = 0;
|
||||
/* Each stream's schedule shift; 0: the declaration's. */
|
||||
double shift_video = 0.0;
|
||||
double shift_audio = 0.0;
|
||||
/* Latent upscaling (abi/rad_builder.h, RadVideoGenDecl): the factor, 0 for none, and the
|
||||
* evaluations at the full size after it, 0 for the model's default. */
|
||||
double upscale = 0.0;
|
||||
int32_t refine = 0;
|
||||
uint64_t seed = 0;
|
||||
/* The reference media and keyframes, sorted by (kind, index). */
|
||||
std::vector<VideoRefMedia> refs;
|
||||
/* The pictures the prompt shows the text encoder's vision tower, placed in `tokens`; null for
|
||||
* none. */
|
||||
std::shared_ptr<mm::PromptMedia> media;
|
||||
/* Guidance (RadVideoGenDecl::guidance): the eight terms, NaN for the model's default, and the
|
||||
* negative prompt, rendered and tokenised; `has_neg` false for the model's default. */
|
||||
double guidance[8] = { NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN };
|
||||
@@ -122,13 +158,15 @@ void video_small_size(const RadVideoGenDecl& d, int32_t width, int32_t height, d
|
||||
* takes, the shorter of the two. With a trained schedule any other step count than the declared
|
||||
* one gives no steps. `video_tokens` are the video's latent tokens, which form 1's dynamic shift
|
||||
* reads. With `refine` (form 1 and refinement rungs) the rungs are followed by the refinement
|
||||
* rungs instead of a 0, the evaluations their sum. */
|
||||
* rungs instead of a 0, the evaluations their sum. `shift_video` and `shift_audio` replace the
|
||||
* declaration's shifts of form 0 when above 0. */
|
||||
struct VideoSchedule {
|
||||
std::vector<float> sig_v, sig_a;
|
||||
int32_t steps = 0;
|
||||
};
|
||||
VideoSchedule video_schedule(const RadVideoGenDecl& d, int32_t steps, int64_t video_tokens = 0,
|
||||
bool refine = false);
|
||||
bool refine = false, double shift_video = 0.0,
|
||||
double shift_audio = 0.0);
|
||||
|
||||
} /* namespace gen */
|
||||
} /* namespace rad */
|
||||
Reference in new issue
Block a user