File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,7 @@ extern "C" {
441
441
LLAMA_API int32_t llama_n_ctx_train (const struct llama_model * model);
442
442
LLAMA_API int32_t llama_n_embd (const struct llama_model * model);
443
443
LLAMA_API int32_t llama_n_layer (const struct llama_model * model);
444
+ LLAMA_API int32_t llama_n_head (const struct llama_model * model);
444
445
445
446
LLAMA_API const struct llama_model * llama_get_model (const struct llama_context * ctx);
446
447
Original file line number Diff line number Diff line change @@ -19047,6 +19047,10 @@ int32_t llama_n_layer(const struct llama_model * model) {
19047
19047
return model->hparams.n_layer;
19048
19048
}
19049
19049
19050
+ int32_t llama_n_head(const struct llama_model * model) {
19051
+ return model->hparams.n_head();
19052
+ }
19053
+
19050
19054
const struct llama_model * llama_get_model(const struct llama_context * ctx) {
19051
19055
return &ctx->model;
19052
19056
}
You can’t perform that action at this time.
0 commit comments