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

+29
View File
@@ -183,6 +183,10 @@ std::pair<uint32_t, const char*> decode_utf8(const char* src);
std::pair<std::vector<uint32_t>, PartialUtf8> decode_utf8(const std::string& src,
PartialUtf8 partial_start);
/* The same into `out`, whose capacity is reused; returns the carried state. */
PartialUtf8 decode_utf8(const std::string& src, PartialUtf8 partial_start,
std::vector<uint32_t>* out);
/* ============================================================ elements */
inline bool is_end_of_sequence(const GbnfElement* pos) {
@@ -331,5 +335,30 @@ int plan_build(const GbnfRuleSet& rules, uint32_t root, const std::shared_ptr<co
int plan_fill(const MaskPlan& plan, const GbnfStacks& stacks, PartialUtf8 partial, bool allow_eog,
uint32_t* bitmask, int64_t n_words);
/* STEP A STACK SET OVER CODE POINTS through the plan's automaton: `out` is the set accepting
* cps[0..n) one at a time leaves -- what accept_chr over every stack, code point by code point,
* builds -- sorted, without duplicates, written over what `out` held so its capacity is reused.
* `stacks` need not be sorted and must not point into `out`.
*
* `at` IS THE STATE THE CALLER'S SET IS, when it knows: on entry, a state an earlier step on this
* plan returned, which spares canonicalising the set, or an id of -1; on return, the state
* reached, or an id of -1 when that state holds an empty stack or a token terminal on top -- a
* set the caller does not step whole, so not one it can name next time. Valid only while the
* automaton that issued it lives; `gen` says which one that was. Returns true when the state
* reached is the one `at` named on entry: the caller's set already is it, and `out` is left
* alone. That is the steady state of a free-text value.
*
* The automaton memoises each state's successor per
* interval of code points, so a state seen before costs a lookup per code point where the stack
* machinery would rebuild every closure; inside a free-text value the state is the same one
* token after token. Throws GbnfLimit past the per-operation bounds. Thread-safe: it takes the
* plan's lock. */
struct PlanState {
uint64_t gen = 0;
int32_t id = -1;
};
bool plan_step(const MaskPlan& plan, const std::vector<const GbnfStack*>& stacks, PlanState* at,
const uint32_t* cps, size_t n, GbnfStacks* out, OpWork& work);
} /* namespace gbnf */
} /* namespace rad */