From 6b20c7f1b15776cd1e240e55f331a4ded3087a9d Mon Sep 17 00:00:00 2001 From: l3utterfly Date: Sun, 8 Oct 2023 01:14:09 +0800 Subject: [PATCH] uncommented hparam comparison check after fix --- llama.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/llama.cpp b/llama.cpp index 2e868cfd79c8d..34b99e36e2c91 100644 --- a/llama.cpp +++ b/llama.cpp @@ -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