Skip to content

Commit

Permalink
uncommented hparam comparison check after fix
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Oct 7, 2023
1 parent 54e001b commit 6b20c7f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8454,11 +8454,10 @@ static bool llama_load_session_file_internal(struct llama_context * ctx, const c
llama_hparams session_hparams;
file.read_raw(&session_hparams, sizeof(llama_hparams));

// TODO: need to do floating point comparison imprecisely for norm_eps
//if (session_hparams != ctx->model.hparams) {
// LLAMA_LOG_INFO("%s : model hparams didn't match from session file!\n", __func__);
// return false;
//}
if (session_hparams != ctx->model.hparams) {
LLAMA_LOG_INFO("%s : model hparams didn't match from session file!\n", __func__);
return false;
}
}

// load the prompt
Expand Down

0 comments on commit 6b20c7f

Please sign in to comment.