From 42423ec4d3a581c6667d2a56c085da498d639dcf Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Sat, 12 Jul 2025 13:42:35 -0400 Subject: [PATCH] imatrix : add warning when legacy format is written --- tools/imatrix/imatrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/imatrix/imatrix.cpp b/tools/imatrix/imatrix.cpp index 1a16ae2c08..d98ddce2f6 100644 --- a/tools/imatrix/imatrix.cpp +++ b/tools/imatrix/imatrix.cpp @@ -349,8 +349,9 @@ void IMatrixCollector::save_imatrix_legacy(int32_t ncall) const { void IMatrixCollector::save_imatrix(int32_t n_chunk) const { auto fname = m_params.out_file; - // TODO: use the new format by default also for .imatrix + // TODO: use the new format in more cases if (!string_ends_with(fname, ".gguf")) { + LOG_WRN("\n%s: saving to legacy imatrix format because output suffix is not .gguf\n", __func__); this->save_imatrix_legacy(n_chunk); return; }