radiance 1.12.0

New models:
- Fish Audio drama-3: speech with speaker tags and inline direction, voices cloned from reference
  clips (the `references` field of /v1/audio/speech and the streaming session), two cards
- Gemma 4 E2B/E4B (KV-shared layers, per-layer embeddings, clipped vision linears), with
  NVIDIA-Nemotron-3.5-Bolt-E4B in bf16 with DFlash and vision on one card, and E4B recipes

Speed:
- MXFP4 GEMMs for one to 64 rows and a tiled prefill GEMM at TN=4 from 1024 rows: the 27B MXFP4
  with DFlash2 decodes about 1% faster at c1, 5% at c4 and 14% at c16
- The fp8 and int8 LM heads read their weight once for 65 to 128 rows
- A prefill step of one sequence runs in two pieces on a second lane at two ranks (qwen35_fp8,
  gemma3): a 45K-token prompt on the 27B fp8 in 15.1 s instead of 16.2 s
- Gemma 3's fused all-reduce junctions also under a lossy wire
- --draft-short-from N: a block drafter runs its shorter block from N decoding sequences on
  (off by default; with 8 on the 27B MXFP4: c8 +12%, c16 +18%, c64 +32%, c1 unchanged)
- --tp-attn-split rows: GLM-5.3-Flash's MLA attention split by rows over the ranks, 18 to 21%
  faster prefill; lossy, `heads` stays the default
- --draft-coupling on: Qwen3.8-Flash-Next's MTP drafter samples its proposals from its reranked
  top-8 and the target's draw is coupled to it; pays at high temperatures (c1 at T 1.0: 155 ->
  178 tok/s), costs at low ones; off by default

Features:
- Edited prompts on windowed models (Gemma 4) reuse their prefix: periodic window snapshots, and
  snapshot-backed prefix KV kept across recomputes (an edited tail on Gemma 4 31B: 96 s -> 2.6 s)
- DELETE /sessions/<label> and DELETE /sessions?id=<id> forget one stored conversation
- --state-cache-dtype f16: the delta-net state cache at half the memory (qwen35 plugins; lossy)

Fixes:
- A browser's CORS preflight allows DELETE

Changes: Plugin ABI 27: out-of-tree plugins must be rebuilt. The environment switches the PRs
added are flags now (--tp-attn-split, --draft-coupling, --state-cache-dtype).
This commit is contained in:
137 files changed
+12959 -1126

No files matched your search

+30
View File
@@ -78,6 +78,7 @@ struct SchedMetrics {
int64_t prefix_restore_cuts = 0;
/* Removed by --prefix-cache-ttl, cumulative. Not evictions: nothing wanted the memory. */
int64_t prefix_expired = 0, prefix_ckpt_expired = 0;
int64_t prefix_released = 0, prefix_ckpt_released = 0;
/* Decoupled prefix caching (spec §7.3). `prefix_hit_rate` is the attention hit rate, as in
* vLLM. The linear side hits at a different granularity (whole checkpoints, not blocks), so
* it is reported separately, with token counts and checkpoints written. */
@@ -168,6 +169,17 @@ struct SessionOccupancy {
int64_t host_cap_bytes = 0;
};
/* What a release took out of the store and what it left (PrefixCache::release_session). The
* kept counts are apart on purpose: `shared` blocks belong to another stored conversation too,
* `live` ones to a request still reading them. */
struct SessionReleased {
int64_t sessions = 0;
int64_t entries = 0, tokens = 0;
int64_t device_bytes = 0, host_bytes = 0;
int64_t snapshots = 0;
int64_t kept_tokens = 0, kept_shared = 0, kept_live = 0;
};
/* One in-flight request, for the live request table: shows which request is stuck, e.g. one
* waiting on a prompt that will never fit, which no aggregate metric reveals. */
struct RequestStat {
@@ -225,6 +237,15 @@ public:
* allocated), but it takes the scheduler's lock because a step may be inserting into the map. */
virtual int64_t reset_prefix_cache() { return RAD_E_UNSUPPORTED; }
/* Forgets one stored conversation (DELETE /sessions): every row carrying `label`, or with
* `id` nonzero the row of that engine id; `keep_tokens` leaves the chain's start standing.
* RAD_E_NOTFOUND when nothing matches (404), RAD_E_STATE while a request of that
* conversation is queued or running (409), RAD_E_UNSUPPORTED without a prefix cache (501). */
virtual int release_session(const std::string& /*label*/, uint64_t /*id*/,
int64_t /*keep_tokens*/, SessionReleased* /*out*/) {
return RAD_E_UNSUPPORTED;
}
/* The live request table, oldest first; returns the count. Default: none kept. */
virtual int requests(std::vector<RequestStat>* /*out*/) const { return 0; }
@@ -662,6 +683,15 @@ struct AudioGenInfo {
int64_t sample_rate = 0, channels = 0;
int64_t default_steps = 0, max_lanes = 1; /* default_steps 0: no denoiser */
double default_cfg = 1.0;
/* RadAudioGenDecl::branches (1: no guidance) and ::input_special (the {input} slot is
* tokenised with special tokens). */
int32_t branches = 2;
bool input_special = false;
/* RadAudioGenDecl's references: the prompt with them and one reference ("" when the model
* takes none), the clips' rate and frame, and the most of them and their samples. */
std::string tmpl_ref, ref_item;
int64_t ref_rate = 0, ref_hop = 0, ref_max_samples = 0;
int32_t ref_max = 0;
};
class IAudioGen {