From 960ef9614178a825578c32417ed5876c367a506d Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Thu, 1 Jan 2026 13:44:59 +0000 Subject: [PATCH] Prepare for future optimization algorithms --- src/llama-quant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index f518c10781..67e5aa9827 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -695,7 +695,7 @@ static std::unordered_map target_bpw_type( constexpr double epsilon = 1e-12; constexpr double infinity = std::numeric_limits::infinity(); - constexpr uint32_t file_magic = 0x4d534531; // MSE1 + constexpr uint32_t file_magic = 0x4d534531; // MSE1 constexpr uint64_t arbitrary_magic = 0xeabada55cafed00d; const char * func = __func__; @@ -785,7 +785,7 @@ static std::unordered_map target_bpw_type( std::replace(gen_name.begin(), gen_name.end(), ' ', '_'); gen_name.empty() ? checkpoint_file = ml.arch_name : checkpoint_file = gen_name; - checkpoint_file += "-" + std::string(hex) + ".bpw_state"; + checkpoint_file += "-" + std::string(hex) + "-mse.bpw_state"; if (params->keep_bpw_state && params->bpw_state) { const auto * filename = static_cast(params->bpw_state);