radiance 1.7.0

- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves
  every shipped container
- Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime
- /v1/messages works with Claude Code as it ships (gearwave00001)
- a long agent conversation keeps its cached history when the client rewrites its last turn
  (manueloverride)
- a stream's first event goes out with the first token, so llama-benchy measures prefill right
- opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42)
- four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b)
- NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA
  adapters (baKon)
- many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool
  arguments and the CPU's vision and audio encoders
- plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
This commit is contained in:
Deadcode committed 2026-10-16 18:25:18 +02:00
1 parent b068190326
commit 1e968f6e1d
739 files changed
+128447 -84632

No files matched your search

+28 -6
View File
@@ -1496,13 +1496,35 @@ std::string value_to_json(const value & val, int indent, const std::string_view
// TODO: avoid circular references
std::string value_to_string_repr(const value & val) {
if (is_val<value_string>(val)) {
const std::string val_str = val->as_string().str();
if (val_str.find('\'') != std::string::npos) {
return value_to_json(val);
} else {
return "'" + val_str + "'";
/* RADIANCE: Python's str repr, which jinja2 prints for a string inside a list or a dict:
* single quotes unless the text holds one and no double quote, and backslash escapes for
* the backslash, the quote, \t \n \r and the other ASCII controls. Python also escapes
* non-printable non-ASCII code points; those pass through here. */
const std::string s = val->as_string().str();
const char q = s.find('\'') != std::string::npos && s.find('"') == std::string::npos ? '"' : '\'';
std::string out(1, q);
for (const char ch : s) {
const unsigned char c = (unsigned char) ch;
if (ch == q || ch == '\\') {
out += '\\';
out += ch;
} else if (ch == '\t') {
out += "\\t";
} else if (ch == '\n') {
out += "\\n";
} else if (ch == '\r') {
out += "\\r";
} else if (c < 0x20 || c == 0x7f) {
static const char hex[] = "0123456789abcdef";
out += "\\x";
out += hex[c >> 4];
out += hex[c & 15];
} else {
out += ch;
}
}
out += q;
return out;
} else {
return val->as_repr();
}