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
+30
-3
@@ -118,8 +118,8 @@ TEST(loading_reads_identity_and_calls_open) {
|
||||
if (!base) return;
|
||||
CHECK_EQ((int)base->kind, RAD_PLUGIN_KERNEL);
|
||||
CHECK_EQ(base->version, "0.1");
|
||||
CHECK_EQ(base->n_kernels, 13);
|
||||
CHECK_EQ(base->n_schemas, 7);
|
||||
CHECK_EQ(base->n_kernels, 16);
|
||||
CHECK_EQ(base->n_schemas, 9);
|
||||
|
||||
/* The optional open hook runs once, after load and before any selection. */
|
||||
auto open_calls = reinterpret_cast<int (*)(void)>(dlsym(base->handle, "radtest_open_calls"));
|
||||
@@ -285,7 +285,7 @@ TEST(every_row_s_op_has_a_schema) {
|
||||
CHECK_OK(load(r));
|
||||
CHECK_OK(r.check_complete());
|
||||
const auto ops = r.op_names();
|
||||
CHECK_EQ(ops.size(), (size_t)7);
|
||||
CHECK_EQ(ops.size(), (size_t)9);
|
||||
CHECK_EQ(ops[0], "t_attn");
|
||||
}
|
||||
|
||||
@@ -790,4 +790,31 @@ TEST(the_selection_table_folds_repeats_and_names_the_refusal) {
|
||||
CHECK_EQ(r.n_selections(), (size_t)0);
|
||||
}
|
||||
|
||||
/* A "device." CONSTRAINT IS READ FROM THE MACHINE, not from the query: the engine measures peer
|
||||
* access at launch and the selector holds a kernel that needs it to that. Unmeasured, the kernel
|
||||
* is not selected and the refusal says nothing measured it; measured absent, the next row in the
|
||||
* plugin takes the op, and an op with no such row is refused naming the fact. The query never
|
||||
* carries the key, so no geometry -- and no tuning key -- changes. */
|
||||
TEST(a_device_fact_constraint_is_matched_against_the_machine) {
|
||||
Registry r;
|
||||
CHECK_OK(load(r));
|
||||
Geometry g;
|
||||
g.set_i("M", 4);
|
||||
g.set_i("n", 64);
|
||||
|
||||
CHECK_EQ(picked(r.select("t_peer", g, RAD_DOMAIN_DEVICE)), "t_peer_staged");
|
||||
CHECK(has(refusal(r, "t_peer_only", g), "device.p2p is not known"));
|
||||
|
||||
r.set_device_fact(RAD_FACT_P2P, 1);
|
||||
CHECK_EQ(picked(r.select("t_peer", g, RAD_DOMAIN_DEVICE)), "t_peer_direct");
|
||||
CHECK_EQ(picked(r.select("t_peer_only", g, RAD_DOMAIN_DEVICE)), "t_peer_only_direct");
|
||||
CHECK(!g.has(RAD_FACT_P2P));
|
||||
|
||||
r.set_device_fact(RAD_FACT_P2P, 0);
|
||||
CHECK_EQ(picked(r.select("t_peer", g, RAD_DOMAIN_DEVICE)), "t_peer_staged");
|
||||
const std::string why = refusal(r, "t_peer_only", g);
|
||||
CHECK(has(why, "device.p2p == 1, have 0"));
|
||||
CHECK(has(why, "measured at launch"));
|
||||
}
|
||||
|
||||
RAD_TEST_MAIN()
|
||||
Reference in new issue
Block a user