radiance 1.1.0

- The VRAM split has no ratio: --expert-vs-cache-ratio is gone (now an unknown option). The
  experts keep what the pinned host pool cannot hold, the KV cache takes the rest and lends idle
  blocks to the experts. Flash-Next at tp2: 7.9 GiB of KV a card, up from 4.7. Startup, /stats,
  /metrics and the dashboard report the most the cache can hold.
- Linear-state snapshots live in pinned host memory, not VRAM (--checkpoint-slots sizes the
  store). Prefix-cache misses on agent sessions fixed; a published conversation is no longer
  trimmed away.
- Any world size from the shipped container (baKon): --tp 3 on Flash-Next with no padded
  checkpoint -- the attention world, uneven delta-net heads, the fill op.
- Kernels (keptn42): moe_gemm_q decode loads and one-trip run search, hc_read's prefill form
  (+3.7% prefill at 18K), hc_up row groups up to eight, the fused router launch. Each is the rule
  where it was measured faster; no environment switches.
- Tool calls: a typed argument is always JSON (Python True/None no longer leak into arguments --
  Codeberg #21); nine further reply-parser fixes; the reply path inside a call is ~12x cheaper on
  the host.
- The kernel changes: prefill +2-3% and decode -2% a step on 2x R9700 at tp2, identical text.
This commit is contained in:
Deadcode committed 2026-10-06 14:04:49 +02:00
1 parent 9f5feb24ee
commit 82b5835c02
101 files changed
+5105 -3767

No files matched your search

+10 -17
View File
@@ -929,20 +929,18 @@ int Builder::weight_shard_span_parts(rad_weight h, const int64_t* lo, const int6
int Builder::kv_group_zero(rad_kvgroup h) {
if (finished_) { err(RAD_E_STATE, "kv_group_zero after declare finished"); return RAD_E_STATE; }
if (h == 0 || h >= prog_.kv_groups.size()) return RAD_E_INVAL;
prog_.kv_groups[h].zero = true;
return RAD_OK;
}
int Builder::weight_shard_zero(rad_weight h) {
if (finished_) { err(RAD_E_STATE, "weight_shard_zero after declare finished"); return RAD_E_STATE; }
if (h == 0 || h >= prog_.weights.size()) return RAD_E_INVAL;
WeightInfo& w = prog_.weights[h];
if (w.decl.shard != RAD_SHARD_ROW && w.decl.shard != RAD_SHARD_COL) {
err(RAD_E_INVAL, "weight '%s': a zero share on a weight that is not row- or "
"column-sharded", w.name.c_str());
/* PAGED GROUPS ONLY. A zero group is one whose rank computes nothing that reads or writes it,
* and a paged group's absence is invisible to the others: they index the shared block table
* and this rank has no shard to index. A linear or conv group carries per-sequence state the
* snapshot store saves and the step clears on every rank, and a zero-sized one would make
* each of those copies a size mismatch. */
const int kind = prog_.kv_groups[h].decl.kind;
if (kind != RAD_KV_FULL && kind != RAD_KV_WINDOW) {
err(RAD_E_INVAL, "kv group '%s': kv_group_zero on a group that is not paged",
prog_.kv_groups[h].name.c_str());
return RAD_E_INVAL;
}
w.shard_zero = true;
prog_.kv_groups[h].zero = true;
return RAD_OK;
}
@@ -1675,11 +1673,6 @@ int rad_weight_shard_span_parts(RadBuilder* b, rad_weight w, const int64_t* lo,
return B(b)->weight_shard_span_parts(w, lo, hi, total, n);
}
int rad_weight_shard_zero(RadBuilder* b, rad_weight w) {
if (!b) return RAD_E_INVAL;
return B(b)->weight_shard_zero(w);
}
int rad_kv_group_zero(RadBuilder* b, rad_kvgroup g) {
if (!b) return RAD_E_INVAL;
return B(b)->kv_group_zero(g);