Skip to content

Commit 3975b51

Browse files
committed
kvarn: remove experimental startup warning
1 parent 100fc13 commit 3975b51

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/llama-context.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8572,10 +8572,6 @@ llama_context * llama_init_from_model(
85728572
}
85738573
LLAMA_LOG_INFO("%s: KVarN layers use structured records; non-KVarN layers (e.g. SWA) use type_k = %s, type_v = %s\n",
85748574
__func__, ggml_type_name(params.type_k), ggml_type_name(params.type_v));
8575-
if (params.kvarn.type != LLAMA_KVARN_K4V2_G128) {
8576-
LLAMA_LOG_WARN("%s: KVarN preset %s is experimental; only kvarn_k4v2_g128 is reference-aligned\n",
8577-
__func__, llama_kvarn_type_name(params.kvarn.type));
8578-
}
85798575
LLAMA_LOG_INFO("%s: enabling structured KVarN cache type %s\n",
85808576
__func__, llama_kvarn_type_name(params.kvarn.type));
85818577
}

tests/test-dflash-plumbing.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,9 +2646,8 @@ int main(int argc, char ** argv) {
26462646
kv_cache_iswa_cpp.find("make_cache(size_swa, hparams.n_swa, hparams.swa_type, filter_swa, mem_other_swa, false)") != std::string::npos &&
26472647
kv_cache_iswa_cpp.find("KVarN requires full-size SWA cache for now") == std::string::npos,
26482648
"ISWA with KVarN must keep SWA layers on compact normal KV instead of expanding SWA to full-size KVarN");
2649-
ok &= expect(context_cpp.find("params.kvarn.type != LLAMA_KVARN_K4V2_G128") != std::string::npos &&
2650-
context_cpp.find("is experimental; only kvarn_k4v2_g128 is reference-aligned") != std::string::npos,
2651-
"non-k4v2 KVarN presets must be labeled experimental at runtime");
2649+
ok &= expect(context_cpp.find("is experimental; only kvarn_k4v2_g128 is reference-aligned") == std::string::npos,
2650+
"KVarN presets must not emit experimental/reference-aligned startup warnings");
26522651
ok &= expect(llama_bench.find("bench_cache_type_from_name") != std::string::npos &&
26532652
llama_bench.find("kvarn_bits_from_cache_type") != std::string::npos &&
26542653
llama_bench.find("normalize_kvarn_cache_pair") != std::string::npos &&

0 commit comments

Comments
 (0)