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

+4 -1
View File
@@ -257,7 +257,8 @@ int Scheduler::set_draft(uint64_t id, const int32_t* tokens, int n) {
*
* Appending to `Request::output` is not enough on its own: without a push the engine generates
* correctly, step after step, while the HTTP thread waits in `Sink::wait()` until the client times
* out. `sink_push`, `sink_finish` and `sink_prompt_stats` are called from here and nowhere else.
* out. Every sink_* call -- push, finish, prompt stats, admission and drafts -- is made from this
* file and nowhere else.
*
* A push returns false ONLY on overflow, and an overflowing sink has already failed the request --
* a stream missing tokens in the middle is worse than one that stops and says so -- so the return
@@ -826,6 +827,7 @@ int Scheduler::admit_one(SchedReq& s, int64_t budget) {
if (s.card < 0) { s.card = free_cards_.back(); free_cards_.pop_back(); }
r.state = ReqState::Running;
s.running = true;
server::sink_admitted(r.sink);
s.sched_tokens = (int32_t)want;
s.pending_ckpt = ckpt;
++m_.admitted;
@@ -1488,6 +1490,7 @@ int Scheduler::commit(const StepResult& res) {
draft_.observe(e.n_spec, a);
m_.draft_tokens += e.n_spec;
m_.draft_accepted += a;
server::sink_drafts(r.sink, e.n_spec, a);
}
}
s.n_draft = 0;