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

+26 -1
View File
@@ -142,6 +142,7 @@ public:
SessionStat o;
o.id = s.id;
o.model = s.model;
o.label = s.label;
o.n_tokens = s.n_tokens;
o.bytes = s.bytes;
o.idle_s = now > s.last_used_ns ? (double)(now - s.last_used_ns) / 1e9 : 0.0;
@@ -319,6 +320,7 @@ public:
std::string push(int32_t t) override { return d_.push(t); }
std::string flush() override { return d_.flush(); }
bool stopped() const override { return d_.stopped(); }
std::string stop_hit() const override { return d_.stop_hit(); }
void defer_stops_until(const std::string& m) override { d_.defer_stops_until(m); }
private:
Detokenizer d_;
@@ -376,6 +378,14 @@ public:
if (id < 0 || id >= vocab_->n_tokens()) return std::string();
return utf8_sanitize(vocab_->text(id));
}
std::string token_bytes(int32_t id) const override {
if (id < 0 || id >= vocab_->n_tokens()) return std::string();
return tok_.decode({ id }, /*render_special=*/true);
}
std::string reply_bytes(int32_t id) const override {
if (id < 0 || id >= vocab_->n_tokens()) return std::string();
return tok_.decode({ id }, /*render_special=*/false);
}
std::unique_ptr<IDetokenizer> detokenizer(
const std::vector<std::string>& stops,
@@ -549,7 +559,21 @@ public:
bool supports_tools() const override { return t_.caps().tools; }
bool supports_reasoning() const override { return t_.caps().preserve_reasoning; }
std::string tool_refusal() const override { return tool_refusal_; }
const std::string& source() const { return t_.source(); }
std::string source() const override { return t_.source(); }
/* Under llama-server's names (its chat_template_caps), from the same probe. */
std::string caps() const override {
const ChatCaps& c = t_.caps();
json o;
o["supports_tools"] = c.tools;
o["supports_tool_calls"] = c.tool_calls;
o["supports_system_role"] = c.system_role;
o["supports_parallel_tool_calls"] = c.parallel_tool_calls;
o["supports_preserve_reasoning"] = c.preserve_reasoning;
o["supports_string_content"] = c.string_content;
o["supports_typed_content"] = c.typed_content;
o["supports_object_arguments"] = c.object_arguments;
return o.dump();
}
int apply(const json& messages, const json& tools, const ChatRenderOptions& opt,
ChatRender* out, std::string* why) const override {
@@ -559,6 +583,7 @@ public:
o.parallel_tool_calls = opt.parallel_tool_calls;
o.tool_choice = opt.tool_choice;
o.reasoning_format = opt.reasoning_format;
o.continue_final = opt.continue_final;
o.grammar = opt.grammar;
o.json_schema = opt.json_schema;
o.template_kwargs = opt.template_kwargs;