We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c41736 commit 7bbb5ebCopy full SHA for 7bbb5eb
src/llama-model.cpp
@@ -1100,8 +1100,9 @@ void llama_model::load_hparams(llama_model_loader & ml) {
1100
ml.get_key(LLM_KV_EXPERT_SHARED_COUNT, hparams.n_expert_shared);
1101
ml.get_key(LLM_KV_EXPERT_WEIGHTS_SCALE, hparams.expert_weights_scale);
1102
1103
- switch (hparams.n_layer) {
1104
- case 28: type = LLM_TYPE_16B; break;
+ switch (hparams.n_ff_exp) {
+ case 1408: type = LLM_TYPE_16B; break;
1105
+ case 1792: type = LLM_TYPE_20B; break;
1106
default: type = LLM_TYPE_UNKNOWN;
1107
}
1108
} break;
0 commit comments