Remove file deletion

This commit is contained in:
Ed Addario 2026-01-07 18:28:26 +00:00
parent 06f46afedc
commit 774ba01367
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 0 additions and 10 deletions

View File

@ -909,14 +909,6 @@ static std::unordered_map<std::string, ggml_type> 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<tensor_info> & all_vec) {
@ -1780,8 +1772,6 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
}
}
delete_bpw_state();
return emit_overrides();
}