flags: drop the refusals for --kv-streaming and --kv-stream-threshold

This commit is contained in:
d committed 2026-10-24 20:57:59 +07:00
1 parent fc034b526e
commit 8a765db488
2 files changed
-20

No files matched your search

-13
View File
@@ -540,20 +540,7 @@ int config_parse(int argc, char** argv, Config* c) {
return RAD_E_INVAL;
}
}
else if (S("--kv-streaming")) {
RAD_ERR("--kv-streaming was removed: --kv-resident N is the whole switch. It is the "
"tokens of the sparse attention group's KV its VRAM ring holds, and leaving it "
"off keeps every block on the card; there is no mode to choose past it");
return RAD_E_INVAL;
}
else if (S("--kv-resident")) { if (!num(0, INT64_MAX, &c->kv_resident)) return RAD_E_INVAL; }
else if (S("--kv-stream-threshold")) {
RAD_ERR("--kv-stream-threshold was removed: the streamed path is the cheap one. The "
"base path for a live set that fits the ring measured 2.6-2.9%% slower a step "
"(record §74), so --kv-resident N is the whole switch and there is no path to "
"choose");
return RAD_E_INVAL;
}
else if (S("--host-pool-mib")) { if (!num(0, INT64_MAX, &c->host_pool_mib)) return RAD_E_INVAL; }
else if (S("--embedding-placement") || S("--ngram-placement")) {
const bool emb = S("--embedding-placement");
-7
View File
@@ -735,13 +735,6 @@ TEST(kv_resident_is_the_whole_switch_and_its_ring_is_whole_tokens) {
CHECK_EQ(parse({}, &d), RAD_OK);
CHECK_EQ(d.kv_resident, 0ll); /* nothing streams */
CHECK(!d.kv_streams); /* derived: no group streams either */
for (const char* old : { "auto", "on", "off", "measure" }) {
Config c;
int st = RAD_OK;
const std::string log = stderr_of([&] { st = parse({ "--kv-streaming", old }, &c); });
CHECK_EQ(st, (int)RAD_E_INVAL);
CHECK(has(log, "--kv-resident")); /* the message names the replacement */
}
Config c;
CHECK_EQ(parse({ "--kv-resident", "262144" }, &c), RAD_OK);
CHECK_EQ(c.kv_resident, 262144ll);