Fix model type identification

This commit is contained in:
Andrei Betlen 2024-06-27 22:50:36 -04:00
parent ec25dfc75a
commit f7392b764e

View file

@ -4704,8 +4704,8 @@ static void llm_load_hparams(
ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);
switch (hparams.n_layer) {
case 18: model.type = e_model::MODEL_9B; break;
case 28: model.type = e_model::MODEL_27B; break;
case 42: model.type = e_model::MODEL_9B; break;
case 46: model.type = e_model::MODEL_27B; break;
default: model.type = e_model::MODEL_UNKNOWN;
}
} break;