diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index cd36d1a92c..14a9e47d9c 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -909,14 +909,6 @@ static std::unordered_map target_bpw_type( return out; }; - // Deletes checkpoint file unless --keep-bpw-state is set - auto delete_bpw_state = [&] { - std::ifstream ifs(checkpoint_file); - if (ifs.good() && !params->keep_bpw_state) { - LLAMA_LOG_INFO("%s: deleting %s\n", func, checkpoint_file.c_str()); - std::remove(checkpoint_file.c_str()); - } - }; // Check for user interrupt and save progress auto check_signal_handler = [&](const std::vector & all_vec) { @@ -1780,8 +1772,6 @@ static std::unordered_map target_bpw_type( } } - delete_bpw_state(); - return emit_overrides(); }