radiance 1.3.0

- #47: llama-server's request fields, routes and sampler order, and /props (with baKon's model
  entry: max_model_len, root and capabilities on /v1/models, and /v1/models/:id)
- new APIs: Anthropic's Messages API (/v1/messages), OpenAI's Responses API (/v1/responses),
  llama-server's /completion and /infill, logprobs (OpenAI's logprobs and top_logprobs, up to
  20; llama-server's n_probs), OpenAI's legacy `functions`, and X-Api-Key beside the bearer key
- #4: --model takes a Hugging Face repo id (owner/name), fetched before startup into
  ~/.cache/radiance/hf or --download-dir and checked for changes at every start (redxherring)
- #46: --tp 3 --tp-wire wht6 serves -- a three-rank two-shot all-reduce with uneven shards and
  the tiered-int8 wire over it (baKon); scripts/cardclock.py names what holds each card's clock
  under load (baKon)
- CPU-only serving works again; --kernels names the kernel libraries to load; a model the
  loaded libraries cannot fully serve refuses at startup instead of failing its first request;
  --vram-kv-mib and --vram-weights-mib are gone (the split is automatic)
- --embedding-placement ram is the default, and `auto` is gone
- #40: Swift 1.5 recipes; rad-convert reads which shard holds a tensor from the index
- #53: the pinned host pool gets huge pages where shmem THP is off; #57: a crash on video with
  an odd frame width is fixed
This commit is contained in:
Deadcode committed 2026-10-08 18:22:08 +02:00
1 parent 6a2ee986d6
commit 89cee7ce41
107 files changed
+6849 -1091

No files matched your search

+2 -2
View File
@@ -244,7 +244,7 @@ Timing time_new(const Bench& b, const std::vector<std::string>& pieces, int reps
server::ChatDeltaStream st(req, 0, &bridge);
size_t n = st.first_chunk().size();
for (const std::string& p : pieces) n += st.push(p, false).size();
n += st.final_chunk(server::Finish::Stop).size();
n += st.final_chunk(server::Finish::Stop, server::TimingsOut(), server::UsageOut()).size();
if (n == 0) std::fprintf(stderr, "no output\n");
}
best.sse = std::min(best.sse, since(t0));
@@ -463,7 +463,7 @@ int breakdown(const Bench& b, const Tok& tk, const RealView& view, int reps) {
std::string c = st.push(p, false);
if (r == 0) all += c;
}
o += st.final_chunk(server::Finish::Stop);
o += st.final_chunk(server::Finish::Stop, server::TimingsOut(), server::UsageOut());
if (r == 0) all += o;
}
t_stream.push_back(since(c0));
+12 -1
View File
@@ -211,7 +211,8 @@ void usage() {
" --list-quantizers every quantiser loaded and the options each takes, then exit\n"
" --arch ID override the architecture id from the checkpoint\n"
" --home DIR $RADIANCE_HOME (kernels/, architectures/, quantizers/)\n"
" --kernels A:B kernel plugin hierarchy, first wins. Default $RADIANCE_KERNELS.\n"
" --kernels A:B the kernel libraries to load, first wins. Default $RADIANCE_KERNELS,\n"
" else every library found\n"
" Declare checks the recipe against the kernels it resolves\n"
" --tokenizer F tokenizer.json; its declared chain is baked instead of being\n"
" reconstructed from a pre-tokenizer name\n"
@@ -403,6 +404,16 @@ int main(int argc, char** argv) {
* the last word. Declare reads RadModelMeta and so does the engine's, from the container's
* header, so a choice that changes the graph is stated once and held at both. */
for (const auto& kv : set_kv) meta.set(kv.first, kv.second);
/* ...AND THE DESCRIPTOR FOLLOWS. The plugin pair is derived from quantization_config, so a
* --set of it re-derives the pair rather than leaving the container stating one format and
* selecting the plugin of another: a bf16 checkpoint whose recipe writes Qwen's block fp8 is
* converted for qwen35_fp8 by stating what that release states. */
for (const auto& kv : set_kv)
if (kv.first.rfind("quantization_config.", 0) == 0) {
meta.quant = quant_descriptor(meta);
meta.finish();
break;
}
/* THE CONTAINER --reuse NAMES, read with pread and never paged through its mapping. */
RadFile reuse;
+14 -5
View File
@@ -1165,13 +1165,22 @@ int replay_one(const KfCase& c, const Geometry& g, int64_t M,
*/
/* The library the others are checked against: the one --ref names, else the first kernel library
* that declared itself a reference implementation (RadPluginReferenceFn) -- by that declaration,
* never by name, so the library radiance ships is found exactly as one a third party wrote. */
* never by name, so the library radiance ships is found exactly as one a third party wrote. A
* named one has to be loaded, which --kernels decides: checked against a library that is not
* there, every case would come back unchecked. */
std::string resolve_reference(const Registry& reg, const std::string& named) {
if (!named.empty()) return named;
if (!named.empty()) {
const Plugin* p = reg.plugin(named);
if (p && (p->kind & RAD_PLUGIN_KERNEL)) return p->name;
RAD_ERR("--ref names '%s', which is not a loaded kernel library: name it in --kernels "
"too when that lists the libraries to load", named.c_str());
return std::string();
}
for (const Plugin& p : reg.plugins())
if (p.kind == RAD_PLUGIN_KERNEL && p.reference) return p.name;
RAD_ERR("no kernel library on the search path declares itself a reference implementation, so "
"there is nothing to check against; name one with --ref");
RAD_ERR("no kernel library loaded declares itself a reference implementation, so there is "
"nothing to check against: name one with --ref, and in --kernels when that lists the "
"libraries to load (libref is the one radiance ships)");
return std::string();
}
@@ -1487,7 +1496,7 @@ void usage() {
" Attention is swept over DEPTH as well as query length: the paged\n"
" block table, the split over KV and the window all live there.\n"
" --home DIR $RADIANCE_HOME\n"
" --kernels A:B kernel plugin hierarchy, first wins\n"
" --kernels A:B the kernel libraries to load, first wins; default every library found\n"
" --op NAME check only this op (repeatable prefix match)\n"
" --ref NAME the oracle plugin's name (default: the library that declares itself a\n"
" reference implementation)\n"
+1 -1
View File
@@ -44,7 +44,7 @@ void usage() {
"\n"
" -m, --model FILE the .rad whose declared graph supplies the shapes\n"
" --home DIR $RADIANCE_HOME; the cache is written to <home>/tune/<machine>.tune\n"
" --kernels A:B kernel plugin hierarchy, first wins\n"
" --kernels A:B the kernel libraries to load, first wins; default every library found\n"
" --op NAME tune only ops whose name starts with NAME\n"
" --machine KEY override the machine key (for writing a cache for another box)\n"
" --reps N timing reps, median reported (default 5)\n"