fix bug for norm_rms_eps missing

This commit is contained in:
vincent 2024-02-07 23:01:44 +08:00
parent aa7ab99be2
commit e4bd73c943

View file

@ -2947,6 +2947,8 @@ static void llm_load_hparams(
} break; } break;
case LLM_ARCH_MINICPM: case LLM_ARCH_MINICPM:
{ {
ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);
switch (hparams.n_layer) { switch (hparams.n_layer) {
case 40: model.type = e_model::MODEL_2B; break; case 40: model.type = e_model::MODEL_2B; break;
default: model.type = e_model::MODEL_UNKNOWN; default: model.type = e_model::MODEL_UNKNOWN;