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:
Deadcode committed 2026-10-04 21:23:07 +02:00
1 parent 6df26315b9
commit 966bda899a
39 files changed
+1304 -52

No files matched your search

+11
View File
@@ -218,8 +218,19 @@ private:
struct SeqState {
std::unique_ptr<GrammarBackend> grammar;
DryBreakers dry;
/* Where the reply stands against its reasoning block, over `output[0, think_seen)`.
* Advanced by build_step over what each commit appended, so a step costs the tokens it
* added and not the reply's length. Read only when the request carries a budget. */
ReasoningCount think;
size_t think_seen = 0;
};
/* Mask staged row `row` to the reasoning block's close token: the budget is spent and the
* sampled position is still inside the block. A grammar already masking the row keeps the
* last word -- the close is forced only where the grammar admits it, and a row whose grammar
* forbids it is left to the grammar and forced at a later position. */
void force_close(DeviceSampleParams& p, int64_t row, int32_t close);
SamplerConfig cfg_{};
const VocabView* vocab_ = nullptr;
bool declared_ = false;