Archived
radiance 1.0.7
- Chat responses report usage.completion_tokens_details.reasoning_tokens: how much of completion_tokens was the reasoning block. A reply that ran out of max_tokens inside <think> now reads as that, instead of as a model that answered nothing. - thinking_token_budget (vLLM's name; thinking_budget is read as the same field) caps the reasoning. At that many tokens the block is closed and the model answers from what it has reasoned so far. It holds under speculative decoding and at any temperature. --thinking-token-budget sets the default for clients that send none. - Every completion response carries a `timings` object in llama.cpp's shape: prompt and generated token counts, times and rates, and the speculative tokens drafted and accepted for that request. It is on the buffered response, on each streamed choice's final chunk and on the usage chunk, so a proxy such as llama-swap can read per-request speed. /metrics stays the aggregate. - Peer-to-peer access between the cards is checked at launch. The all-reduce kernels need it; on a machine where the cards cannot reach each other's memory, startup stops and names device.p2p instead of the first all-reduce faulting or hanging. A kernel library can require it with a constraint on the new "device." keys, which match the machine and not the op's parameters. - A pool allocation the driver refuses says why, with the card's free VRAM at that moment and, for the host pool, the pinned memory taken against the amdgpu limit (ttm.pages_limit). Every rank pins its own --host-pool-mib, so --tp 2 pins it twice.
This commit is contained in:
1 parent
6df26315b9
commit
966bda899a
39 files changed
+1304
-52
No files matched your search
@@ -76,6 +76,9 @@ struct ServerOptions {
|
||||
/* The deployment default for `reasoning_effort`, empty for the template's own. See
|
||||
* OaiLimits::default_reasoning_effort for why a server-side default is needed at all. */
|
||||
std::string default_reasoning_effort;
|
||||
/* The deployment default for `thinking_token_budget`, -1 for none. See
|
||||
* OaiLimits::default_thinking_budget. */
|
||||
int64_t default_thinking_budget = -1;
|
||||
/* What a request that sends no sampler fields is served with. See
|
||||
* OaiLimits::default_sampling; only the sampler knobs are read from it. */
|
||||
SamplingParams default_sampling;
|
||||
@@ -141,6 +144,10 @@ public:
|
||||
* A render that fails at the first step says nothing about the defaults and is not reported.
|
||||
* `kwargs_why` / `effort_why` are left empty, or hold the template's refusal at that step. */
|
||||
void check_template_defaults(std::string* kwargs_why, std::string* effort_why) const;
|
||||
/* THE DEPLOYMENT'S thinking_token_budget, asked for by a one-message chat the way a request
|
||||
* would ask for it. Empty when this model's reasoning block can hold one; otherwise the 400 a
|
||||
* request naming the budget would get, which says why. */
|
||||
std::string check_thinking_budget() const;
|
||||
void stop();
|
||||
int port() const { return transport_.port(); } /* 0 until run() is accepting */
|
||||
|
||||
@@ -150,6 +157,10 @@ private:
|
||||
struct Generation;
|
||||
struct StreamState;
|
||||
|
||||
static UsageOut usage_of(const OaiRequest& r, const std::vector<Generation>& gens);
|
||||
static TimingsOut timings_of(const Sink* const* sinks, size_t n);
|
||||
static TimingsOut timings_of(const std::vector<Generation>& gens);
|
||||
|
||||
void register_routes();
|
||||
|
||||
HttpResponse handle_chat(const HttpRequest& req);
|
||||
|
||||
Reference in new issue
Block a user