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
+11
-3
@@ -43,6 +43,9 @@ MemAllocator& rad_malloc_allocator() { static MallocAllocator a; return a; }
|
||||
/* ------------------------------------------------------------------ Shortfall */
|
||||
|
||||
std::string Shortfall::str() const {
|
||||
if (!refused.empty())
|
||||
return fmt("%s: %s of %s refused: %s", pool.c_str(), what.c_str(),
|
||||
humanb(wanted).c_str(), refused.c_str());
|
||||
return fmt("%s: %s wanted %s, %s available -- short by %s",
|
||||
pool.c_str(), what.c_str(), humanb(wanted).c_str(),
|
||||
humanb(available).c_str(), humanb(missing()).c_str());
|
||||
@@ -81,8 +84,11 @@ int Pool::init(std::string_view nm, int64_t bytes, int kind, MemAllocator* a, bo
|
||||
base_ = a->alloc(bytes_, kind);
|
||||
if (!base_) {
|
||||
/* Refuse; do not retry smaller. An engine that quietly re-optimises the split is an
|
||||
* engine whose benchmarks do not reproduce (spec §6). */
|
||||
shortfalls_.push_back({name_, "backing allocation", bytes_, 0});
|
||||
* engine whose benchmarks do not reproduce (spec §6). The allocator's reason goes with
|
||||
* it: the device layer says what the driver answered. */
|
||||
const char* why = a == &rad_device_allocator() ? rad_dev_last_error() : nullptr;
|
||||
shortfalls_.push_back({name_, "backing allocation", bytes_, 0,
|
||||
why && *why ? why : "the allocator returned nothing"});
|
||||
bytes_ = 0;
|
||||
return RAD_E_NOMEM;
|
||||
}
|
||||
@@ -131,7 +137,9 @@ int Pool::init_elastic(std::string_view nm, int64_t bytes, int kind, MemAllocato
|
||||
/* Refuse; do not retry smaller. An address range is not memory -- a reservation that
|
||||
* fails on a 64-bit card is a bug and not a budget, and quietly halving it would hide the
|
||||
* bug behind a pool that cannot grow to what the operator asked for. */
|
||||
shortfalls_.push_back({ name_, "address reservation", bytes_, 0 });
|
||||
const char* why = rad_dev_last_error();
|
||||
shortfalls_.push_back({ name_, "address reservation", bytes_, 0,
|
||||
*why ? why : "the device layer gave no reason" });
|
||||
bytes_ = 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user