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

+51 -1
View File
@@ -34,6 +34,7 @@
#include <algorithm>
#include <atomic>
#include <chrono>
#include <cstdlib>
#include <cmath>
#include <cstdio>
#include <cstring>
@@ -152,6 +153,20 @@ void usage() {
" --changed FILE with --reuse: checkpoint tensors (one name a line) that differ from\n"
" the checkpoint the --reuse container was converted from. Every\n"
" weight that reads one is converted; the rest are copied\n"
" --lora FILE|DIR a PEFT adapter (.safetensors file or directory of them) merged\n"
" into the checkpoint tensors it names before they are converted:\n"
" W + strength * (alpha/r where the adapter states one) * B @ A.\n"
" Repeatable, merged in the order given; each merged tensor joins\n"
" the --changed set, so --reuse never copies an unmerged weight\n"
" --lora-strength F\n"
" the strength of every --lora (default 1)\n"
" --lora-map FILE with --lora: a JSON map for adapters trained on module names this\n"
" checkpoint does not use. {\"strip\": [\"prefix\", ...], \"modules\":\n"
" {\"<pat>\": [\"<target>\", ...]}}: a pattern holds at most one '*',\n"
" which matches one run (the block index) and is substituted into\n"
" every target; several targets mean the module is their concate-\n"
" nation (a fused qkv), and the adapter's rows split along them\n"
" in the order listed\n"
" --in-place with --reuse: EXTEND that container instead of writing a new one.\n"
" Its weights stay where they are; new ones are written past its\n"
" end and the header last. Refused when a weight it holds would\n"
@@ -200,6 +215,9 @@ int main(int argc, char** argv) {
int report_n = 20;
bool verbose = false, plan_only = false, list_quant = false;
std::string reuse_path, changed_path;
std::vector<std::string> lora_paths;
double lora_strength = 1.0;
std::string lora_map;
bool in_place = false;
int kv_dtype = RAD_DT_INVALID;
std::vector<std::pair<std::string, std::string>> set_kv;
@@ -245,6 +263,18 @@ int main(int argc, char** argv) {
else if (a == "--report") report_n = (int)num("--report", 0, INT32_MAX);
else if (a == "--reuse") reuse_path = next("--reuse");
else if (a == "--changed") changed_path = next("--changed");
else if (a == "--lora") lora_paths.push_back(next("--lora"));
else if (a == "--lora-strength") {
const char* v = next("--lora-strength");
char* end = nullptr;
lora_strength = std::strtod(v, &end);
if (!end || *end || end == v) {
std::fprintf(stderr, "rad-convert: --lora-strength wants a number, got '%s'\n",
v);
return 2;
}
}
else if (a == "--lora-map") lora_map = next("--lora-map");
else if (a == "--in-place") in_place = true;
else if (a == "--kv-cache-dtype") {
const std::string v = next("--kv-cache-dtype");
@@ -303,6 +333,16 @@ int main(int argc, char** argv) {
"weight cannot be replaced in place)\n");
return 2;
}
if (!lora_paths.empty() && in_place) {
std::fprintf(stderr, "rad-convert: --lora merges into the source, whose weights "
"--in-place copies from --reuse unchanged; convert to a new file\n");
return 2;
}
if (!lora_map.empty() && lora_paths.empty()) {
std::fprintf(stderr, "rad-convert: --lora-map renames the modules --lora merges; give "
"a --lora to go with it\n");
return 2;
}
if (in_place) {
if (reuse_path.empty()) {
std::fprintf(stderr, "rad-convert: --in-place extends the container --reuse names\n");
@@ -395,6 +435,15 @@ int main(int argc, char** argv) {
return 1;
}
}
/* Adapters merge before anything reads the source, and a merged tensor joins the changed set:
* --reuse matches a weight by how it was converted, not by its source bytes. */
for (const std::string& lp : lora_paths) {
std::vector<std::string> merged;
if (ck.add_lora(lp, lora_strength, &merged,
lora_map.empty() ? nullptr : &lora_map) < 0)
return 1;
for (std::string& m : merged) changed.insert(std::move(m));
}
/* --in-place inherits the container's radiance.* keys (the convert-time choices its weights
* were made under), except `radiance.encoder`, which this run derives. */
int inherited = 0;
@@ -874,7 +923,8 @@ int main(int argc, char** argv) {
if (!changed_read.count(n)) unread.push_back(n);
if (!unread.empty()) {
std::sort(unread.begin(), unread.end());
RAD_ERR("--changed names %zu tensor(s) no weight of this conversion reads, e.g. '%s'",
RAD_ERR("the changed set (--changed and merged adapters) names %zu tensor(s) no "
"weight of this conversion reads, e.g. '%s'",
unread.size(), unread[0].c_str());
w.abort();
return 1;