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
+13
-3
@@ -23,14 +23,24 @@ namespace {
|
||||
/* True when every constraint holds. Otherwise `why` names the FIRST one that did not and what it
|
||||
* wanted: "no kernel" on its own is not an answer anyone can act on, and the first failure is the
|
||||
* one a reader can fix -- listing all four of a row's unmet constraints buries it. */
|
||||
bool row_matches(const KernelRow& r, const Geometry& g, const std::vector<std::string>& skip,
|
||||
std::string* why) {
|
||||
bool row_matches(const KernelRow& r, const Geometry& g, const Geometry& facts,
|
||||
const std::vector<std::string>& skip, std::string* why) {
|
||||
static const size_t kFact = std::strlen(RAD_DEVICE_FACT_PREFIX);
|
||||
for (int i = 0; i < r.info->n_constraints; ++i) {
|
||||
const RadConstraint& c = r.info->constraints[i];
|
||||
/* A constraint on a RAD_DERIVED parameter the caller did not name is not a predicate on
|
||||
* the question -- it IS the answer, read back afterwards. Matching on it would make the
|
||||
* kernel unreachable by the only query anyone can ask (rad_abi.h, spec §7.2). */
|
||||
if (c.key && std::find(skip.begin(), skip.end(), c.key) != skip.end()) continue;
|
||||
/* A "device." key is a fact about the machine, read from what the engine measured. */
|
||||
if (c.key && std::strncmp(c.key, RAD_DEVICE_FACT_PREFIX, kFact) == 0) {
|
||||
if (constraint_holds(c, facts)) continue;
|
||||
if (why)
|
||||
*why = facts.has(c.key)
|
||||
? constraint_why(c, facts) + " -- this machine, measured at launch"
|
||||
: std::string(c.key) + " is not known: nothing measured this machine";
|
||||
return false;
|
||||
}
|
||||
if (!constraint_holds(c, g)) {
|
||||
if (why) *why = constraint_why(c, g);
|
||||
return false;
|
||||
@@ -111,7 +121,7 @@ const KernelRow* Registry::select(std::string_view op, const Geometry& g, int do
|
||||
}
|
||||
|
||||
std::string whynot;
|
||||
bool ok = row_matches(*r, g, derived_keys, &whynot);
|
||||
bool ok = row_matches(*r, g, device_facts_, derived_keys, &whynot);
|
||||
if (ok && accept && *accept) {
|
||||
whynot = (*accept)(*r, g);
|
||||
ok = whynot.empty();
|
||||
|
||||
Reference in new issue
Block a user