mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-01 09:01:57 +00:00
imatrix : add warning when suffix is not .gguf for GGUF imatrix
This commit is contained in:
@@ -512,7 +512,11 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const {
|
|||||||
this->save_imatrix_legacy(n_chunk);
|
this->save_imatrix_legacy(n_chunk);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// else, default to GGUF imatrix
|
if (!string_ends_with(fname, ".gguf")) {
|
||||||
|
// allowed, but hopefully this raises awareness
|
||||||
|
LOG_WRN("\n%s: saving imatrix using GGUF format with a different suffix than .gguf\n", __func__);
|
||||||
|
LOG_WRN("%s: if you want the previous imatrix format, use --output-format dat\n", __func__);
|
||||||
|
}
|
||||||
|
|
||||||
if (n_chunk > 0) {
|
if (n_chunk > 0) {
|
||||||
fname += ".at_";
|
fname += ".at_";
|
||||||
|
|||||||
Reference in New Issue
Block a user