diff --git a/core/config.cpp b/core/config.cpp index 204b0a10..5fa32122 100644 --- a/core/config.cpp +++ b/core/config.cpp @@ -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"); diff --git a/tests/config_test.cpp b/tests/config_test.cpp index 5bf5e402..8d59d0d9 100644 --- a/tests/config_test.cpp +++ b/tests/config_test.cpp @@ -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);