Archived
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:
1 parent
6a2ee986d6
commit
89cee7ce41
107 files changed
+6849
-1091
No files matched your search
@@ -160,6 +160,7 @@ struct SchedMetrics {
|
||||
struct SessionStat {
|
||||
uint64_t id = 0;
|
||||
std::string model; /* the container it was built against */
|
||||
std::string label; /* the client's name for it (`session_id`), or "" */
|
||||
int64_t n_tokens = 0;
|
||||
int64_t bytes = 0;
|
||||
double idle_s = 0; /* since its last turn */
|
||||
@@ -307,6 +308,8 @@ public:
|
||||
* search text that can no longer contain what it is searching for, and the generation would
|
||||
* run to max_tokens. Default false, for a decoder that leaves stop handling to us. */
|
||||
virtual bool stopped() const { return false; }
|
||||
/* The stop string that stopped it, "" when none has. */
|
||||
virtual std::string stop_hit() const { return std::string(); }
|
||||
/* Match the stop strings only after `marker` has been generated (core/text Detokenizer::
|
||||
* defer_stops_until): the reply starts inside its reasoning block. */
|
||||
virtual void defer_stops_until(const std::string& /*marker*/) {}
|
||||
@@ -349,6 +352,15 @@ public:
|
||||
* turned the flag on to see. "" when the id is out of range. */
|
||||
virtual std::string piece(int32_t /*id*/) const { return std::string(); }
|
||||
|
||||
/* THE BYTES ONE ID DECODES TO, unsanitised, control tokens rendered: llama-server's
|
||||
* `with_pieces`. Not necessarily whole UTF-8 -- a byte-fallback or a split multi-byte
|
||||
* character is a fragment -- so the caller checks before putting it in a JSON string. */
|
||||
virtual std::string token_bytes(int32_t /*id*/) const { return std::string(); }
|
||||
/* The bytes one id adds to a REPLY: token_bytes with control tokens rendered as nothing, as
|
||||
* the decoder renders them -- what a logprobs entry spells the token as, so the entries'
|
||||
* texts add up to the reply, as llama-server's do. */
|
||||
virtual std::string reply_bytes(int32_t id) const { return token_bytes(id); }
|
||||
|
||||
/* One incremental decoder per in-flight generation. It is made by the tokenizer rather than
|
||||
* default-constructed by the caller, because it needs the vocabulary to decode anything.
|
||||
* `stops` is passed down because core/text's Detokenizer can suppress a stop string that
|
||||
@@ -382,6 +394,9 @@ struct ChatRenderOptions {
|
||||
std::string grammar; /* the caller's GBNF, or "" */
|
||||
std::string json_schema; /* a response_format schema, as JSON text, or "" */
|
||||
std::string reasoning_format = "auto";
|
||||
/* ASSISTANT PREFILL: continue the conversation's last (assistant) message rather than open a
|
||||
* new turn. "" off, else llama.cpp's "auto", "content" or "reasoning_content". */
|
||||
std::string continue_final;
|
||||
std::map<std::string, std::string> template_kwargs;
|
||||
/* A render whose refusal is an answer and not an error -- the startup probes of what the
|
||||
* template takes -- so the template's refusal is not logged. */
|
||||
@@ -438,6 +453,13 @@ public:
|
||||
* request that sends tools is refused with this sentence rather than answered with calls
|
||||
* nobody can read back. */
|
||||
virtual std::string tool_refusal() const { return std::string(); }
|
||||
|
||||
/* THE TEMPLATE'S SOURCE TEXT and what the capability probe found in it, for /props: what
|
||||
* llama-server reports as `chat_template` and `chat_template_caps`, so a client built against
|
||||
* it can render a prompt the way this server will. "" when unknown; the caps are a JSON
|
||||
* object as text, "{}" when unknown. */
|
||||
virtual std::string source() const { return std::string(); }
|
||||
virtual std::string caps() const { return "{}"; }
|
||||
};
|
||||
|
||||
/* A reply taken apart: what core/text's reply parser gives back once the reply is complete. */
|
||||
|
||||
Reference in new issue
Block a user