Skip to content

Commit 540938f

Browse files
committed
llama : llama_model_desc print number of experts
1 parent 0040d42 commit 540938f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9965,8 +9965,9 @@ int32_t llama_model_meta_val_str_by_index(const struct llama_model * model, int3
99659965
}
99669966

99679967
int32_t llama_model_desc(const struct llama_model * model, char * buf, size_t buf_size) {
9968-
return snprintf(buf, buf_size, "%s %s %s",
9968+
return snprintf(buf, buf_size, "%s %s%s %s",
99699969
llama_model_arch_name(model->arch).c_str(),
9970+
model->hparams.n_expert > 0 ? (std::to_string(model->hparams.n_expert) + "x").c_str() : "",
99709971
llama_model_type_name(model->type),
99719972
llama_model_ftype_name(model->ftype).c_str());
99729973
}

0 commit comments

Comments
 (0)