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
+21
-11
@@ -596,8 +596,8 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
/* The second lane's window (rad_lane1_window_begin): its concurrent buffers are live only across
|
||||
* it, so lane 1 runs nothing outside it, and lane 0 joins lane 1 before it runs an op outside
|
||||
* it, on either side: a transient of such an op may share bytes with a concurrent buffer. An op
|
||||
* that names no buffer (a weight read into the cache, prefetch_beside) touches nothing the window
|
||||
* keeps live and has no transient: it runs on lane 1 anywhere and leaves no window work to join. */
|
||||
* that names no buffer (prefetch_beside's weight read) touches nothing the window keeps live,
|
||||
* so it may run on lane 1 anywhere. */
|
||||
bool names_buf = false;
|
||||
for (int i = 0; i < n_opd && !names_buf; ++i) names_buf = opd[i].kind == RAD_OPK_BUF;
|
||||
if (program_ && program_->lane1_w1 >= 0 && names_buf) {
|
||||
@@ -627,13 +627,23 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
return abort_step_msg(h, RAD_E_INVAL,
|
||||
fmt("issued with %d operands; the runtime carries at most %d",
|
||||
n_opd, MAX_OPERANDS));
|
||||
if (p.n_opd_schema >= 0 && n_opd != p.n_opd_schema)
|
||||
/* A count below the schema is legal only when every dropped slot is a *trailing optional*
|
||||
* operand (rad_abi.h: "an absent optional operand is a null RadTensor.data" -- the shims
|
||||
* branch on exactly that: r4d_opt(), rad_args_have(), libref's finish()). A count below the
|
||||
* required floor shifts positions or drops a required operand, and operands are positional,
|
||||
* so a miscount is silent numerical garbage. */
|
||||
if (p.n_opd_schema >= 0 && (n_opd > p.n_opd_schema || n_opd < p.n_opd_required))
|
||||
return abort_step_msg(h, RAD_E_SCHEMA,
|
||||
fmt("issued with %d operands; the op's schema declares %d. Operands "
|
||||
"are positional, so a miscount is silent numerical garbage",
|
||||
n_opd, (int)p.n_opd_schema));
|
||||
fmt("issued with %d operands; the op's schema declares %d "
|
||||
"(%d required, only trailing optional operands may be omitted). "
|
||||
"Operands are positional, so a miscount is silent numerical "
|
||||
"garbage",
|
||||
n_opd, (int)p.n_opd_schema, (int)p.n_opd_required));
|
||||
|
||||
RadTensor* t = tbuf_;
|
||||
/* The schema slots the issue stopped short of: absent operands, null tensors rather than
|
||||
* stale ones, since args.n_t covers every schema slot (rad_plugin.h). */
|
||||
for (int i = n_opd; i < p.n_opd_schema; ++i) t[i] = RadTensor{};
|
||||
bool touches_host = false; /* a host-domain buffer among the operands; see host_touch_ev_ */
|
||||
|
||||
for (int i = 0; i < n_opd; ++i) {
|
||||
@@ -841,8 +851,9 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
}
|
||||
}
|
||||
|
||||
/* The rest of RadArgs was filled in at prepare; args.t already points at tbuf_. */
|
||||
ip.args.n_t = n_opd;
|
||||
/* The rest of RadArgs was filled in at prepare; args.t already points at tbuf_. There is one
|
||||
* entry per schema operand, the trailing optional ones the issue left out null. */
|
||||
ip.args.n_t = std::max(n_opd, (int)p.n_opd_schema);
|
||||
p.issued = true;
|
||||
++n_issues_;
|
||||
|
||||
@@ -857,7 +868,7 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
|
||||
/* The oracle snapshots every operand before the launch, so the host kernel sees the same
|
||||
* input bytes even for an in-place op. */
|
||||
const IssuePlan* horacle = oracle_ ? oracle_before(h, b, n_opd) : nullptr;
|
||||
const IssuePlan* horacle = oracle_ ? oracle_before(h, b, ip.args.n_t) : nullptr;
|
||||
|
||||
/* ============================== a host launch is a join ==============================
|
||||
*
|
||||
@@ -1049,7 +1060,6 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
g_iss_lau_p = g_iss_lau;
|
||||
}
|
||||
} else {
|
||||
/* The launch alone, split from the band scan and operand resolution `own` covers above. */
|
||||
s = ip.launch(la, cur_stream());
|
||||
}
|
||||
if (hold) {
|
||||
@@ -1075,7 +1085,7 @@ int Ctx::issue_body(rad_op h, const RadOperand* opd, int n_opd, int64_t n) {
|
||||
if (er < 0) return abort_step(h, b, dom, ip, n, er);
|
||||
host_touch_pending_[l] = true;
|
||||
}
|
||||
if (horacle) oracle_after(h, *horacle, ip, n_opd);
|
||||
if (horacle) oracle_after(h, *horacle, ip, ip.args.n_t);
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user