radiance 1.11.0

New models:
- GLM-5.3-Flash reads pictures: its vision tower and processor (--image-tokens sets the budget),
  with decode kernels for a few rows and the DSA indexer split over the ranks
- Sage-A1.5 (fp8 and MXFP4) with its vision tower and a DFlash2 drafter
- Unlimited-OCR (bf16)
- Gemma 4 31B with z-lab's DFlash and RedHatAI's DFlash2 drafters; at four cards its all-reduces
  are fused with the junctions, overlapped with the compute and sent compressed
- Ornith-1.5-35B-A3B w4a8 compose files

Speed:
- Block drafters (DFlash, DFlash2) accept their drafts on the card, and the next step is issued
  ahead
- The four-rank all-reduce is faster for every --tp 4 model
- qwen35_w8a8: the norms and SiLU write the int8 linears' operands directly
- --attn-prefill-fp8 off|qk|pv|both: fp8 QK and PV legs for the h256 prefill attention (about +20%
  prefill on a 221K-token prompt for the 27B MXFP4 at TP2); lossy, off by default

Features:
- Control vectors: --control-vector off|on|disabled (disabled by default), a per-request switch,
  and the published Qwen3.8-Flash-Next refusal-direction vector (its license is in NOTICE)
- Krea 2: the `rebalance` request field, as ComfyUI's ConditioningKrea2Rebalance
- Cards with a small PCI BAR run, with kernel arguments kept in host memory
- Dashboard: live acceptance figures; statsdump rotates its file at a size cap
- KV caches every rank holds whole (GLM-5.3's latent and index caches) take one host-tier slot

Fixes:
- Long conversations taking turns no longer fall back to an early snapshot: a host-tier restore
  makes room as memory pressure does and waits a step for the previous turn's release (two
  conversations of 142K and 147K tokens sent back to back: 31.3 s per turn before, 2.8 s now)
- Kernels before Linux 6.16 (amdgpu below 3.64) no longer hang at startup: virtual memory
  management is turned off there, with a warning
- Gemma 4 dense scales its token embeddings as Hugging Face does (bf16), which changes its output
- The four-rank all-reduce fences prefill-sized messages, for a rare divergence after a fresh start
- GLM-5.3: every refusal names the setting and the reason; its template keeps string content
- Several pictures in one request no longer refuse processors that take one image at a time

Changes: Plugin ABI 26: out-of-tree plugins must be rebuilt. The environment switches the PRs
added are fixed rules or flags now (R4D_ATTN_FP8 is --attn-prefill-fp8).
This commit is contained in:
Deadcode committed 2026-10-23 11:57:52 +02:00
210 files changed
+14363 -2138

No files matched your search

+20 -8
View File
@@ -33,7 +33,7 @@
#include <vector>
/* ==================================================================== the recording builder */
namespace {
namespace rad_fake {
struct RecParam {
std::string key;
@@ -81,7 +81,8 @@ struct RecIssue {
/* A rad_lane_join: `to` behind everything `from` issued before issue number `at`. */
struct RecJoin { size_t at = 0; int from = 0, to = 0; };
} /* namespace */
} /* namespace rad_fake */
using namespace rad_fake;
struct RadBuilder {
std::vector<RecWeight> weights;
@@ -477,13 +478,24 @@ extern "C" int rad_memcpy_async(void* dst, const void* src, int64_t bytes, RadSt
c->copies.push_back({ c->issues.size(), h });
return RAD_OK;
}
/* The pitched copy: recorded exactly as the 1-D one (its destination's first byte names the
* buffer); the unlimitedocr tower packs patch rows and lays out its map with it. */
extern "C" int rad_memcpy_2d_async(void* dst, int64_t dpitch, const void* src, int64_t spitch,
int64_t width, int64_t height, RadStream s) {
(void)dpitch; (void)src; (void)spitch; (void)width; (void)height;
RadCtx* c = (RadCtx*)s;
if (c && c->b)
if (const rad_buf h = fake_buf_of(dst, c->b->bufs.size()))
c->copies.push_back({ c->issues.size(), h });
return RAD_OK;
}
extern "C" int rad_memset_async(void* dst, int value, int64_t bytes, RadStream s) {
(void)dst; (void)value; (void)bytes; (void)s;
return RAD_OK;
}
/* ==================================================================== fixtures and helpers */
namespace {
namespace rad_fake {
/* A deployment: one rank, 256 rows a step, eight sequences, 32k of context. */
RadBuildCtx build_ctx(int rank = 0, int world = 1) {
@@ -660,7 +672,7 @@ int count_issued(const std::vector<std::string>& v, const std::string& name) {
return (int)std::count(v.begin(), v.end(), name);
}
} /* namespace */
} /* namespace rad_fake */
/* ==================================================================== the step lint
*
@@ -685,7 +697,7 @@ int count_issued(const std::vector<std::string>& v, const std::string& name) {
* this rank declared zero;
* strided a GEMM whose input is a column slice narrower than its buffer (libr4d's GEMMs
* read whole rows and refuse it). */
namespace {
namespace rad_fake {
/* One buffer's planned lifetime. `planned` is false for a buffer live over the whole program
* (PERSIST, DERIVED, rad_buf_concurrent, or no declared use), which shares bytes with nothing. */
@@ -1045,7 +1057,7 @@ bool steps_ok(const std::vector<std::unique_ptr<RadCtx>>& v) {
return ok;
}
} /* namespace */
} /* namespace rad_fake */
#define CHECK_LINT(b, ...) CHECK_EQ(report_lint(lint_step((b), { __VA_ARGS__ })), (size_t)0)
/* The passes of one engine step (run_passes): none failed and the lint is clean over them. */
@@ -1056,7 +1068,7 @@ bool steps_ok(const std::vector<std::unique_ptr<RadCtx>>& v) {
} while (0)
/* ==================================================================== fingerprints */
namespace {
namespace rad_fake {
/* A 64-bit FNV-1a fingerprint of everything a declare recorded: ops with their parameters,
* weights, read and write sets and resolution; buffers, weights, KV groups, bindings, name maps,
@@ -1191,6 +1203,6 @@ uint64_t pinned_steps(RadBuilder& b, StepFn step, int rank, int world) {
return issue_hash(b, all, kits);
}
} /* namespace */
} /* namespace rad_fake */
#endif /* RAD_ARCH_FAKES_H */