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

+14
View File
@@ -12,11 +12,15 @@
* boundary: cutting a multi-byte code point in half turns one delta into mojibake and the
* next into a decode error.
*
* And one way to write it: `json_quote_append`, a string literal exactly as nlohmann writes one,
* for the chunks that carry a delta.
*
* This is a scanner, not a parser: it allocates nothing and builds no DOM.
*/
#pragma once
#include <cstddef>
#include <string>
#include <string_view>
namespace rad {
@@ -36,5 +40,15 @@ size_t utf8_trunc(std::string_view s);
* escape, and the class of bug that produces is unbisectable from the server side. */
size_t json_stable_prefix(std::string_view s);
/* Append `s` to `out` as a JSON string literal, quotes included, byte for byte as nlohmann's
* dump() writes one: `\b \t \n \f \r \" \\` as two characters, every other control character
* as `\u00xx` in lowercase hex, and everything else -- DEL and non-ASCII included -- as itself.
* Returns false, with `out` as it was, when `s` is not well-formed UTF-8 (overlong forms,
* surrogates and code points past U+10FFFF included), which nlohmann refuses rather than writes.
*
* A streamed chunk is written with this around a fixed frame instead of through a DOM: building
* and dumping a tree per token cost more than every other part of the token's host work. */
bool json_quote_append(std::string& out, std::string_view s);
} /* namespace server */
} /* namespace rad */