diff --git a/llama.cpp b/llama.cpp index 4a73a62ef..58b5a6b44 100644 --- a/llama.cpp +++ b/llama.cpp @@ -5572,8 +5572,8 @@ int llama_n_embd(const struct llama_context * ctx) { return ctx->model.hparams.n_embd; } -int llama_n_mult(const struct llama_context * ctx) { - return ctx->model.hparams.n_mult; +int llama_n_ff(const struct llama_context * ctx) { + return ctx->model.hparams.n_ff; } int llama_n_head(const struct llama_context * ctx) { @@ -5604,8 +5604,8 @@ int llama_model_n_embd(const struct llama_model * model) { return model->hparams.n_embd; } -int llama_model_n_mult(const struct llama_model * model) { - return model->hparams.n_mult; +int llama_model_n_ff(const struct llama_model * model) { + return model->hparams.n_ff; } int llama_model_n_head(const struct llama_model * model) { diff --git a/llama.h b/llama.h index 8062013c1..16f01cc18 100644 --- a/llama.h +++ b/llama.h @@ -247,7 +247,7 @@ extern "C" { LLAMA_API int llama_n_vocab(const struct llama_context * ctx); LLAMA_API int llama_n_ctx (const struct llama_context * ctx); LLAMA_API int llama_n_embd (const struct llama_context * ctx); - LLAMA_API int llama_n_mult (const struct llama_context * ctx); + LLAMA_API int llama_n_ff (const struct llama_context * ctx); LLAMA_API int llama_n_head (const struct llama_context * ctx); LLAMA_API int llama_n_rot (const struct llama_context * ctx); LLAMA_API int llama_n_layer(const struct llama_context * ctx); @@ -257,7 +257,7 @@ extern "C" { LLAMA_API int llama_model_n_vocab(const struct llama_model * model); LLAMA_API int llama_model_n_ctx (const struct llama_model * model); LLAMA_API int llama_model_n_embd (const struct llama_model * model); - LLAMA_API int llama_model_n_mult (const struct llama_model * model); + LLAMA_API int llama_model_n_ff (const struct llama_model * model); LLAMA_API int llama_model_n_head (const struct llama_model * model); LLAMA_API int llama_model_n_rot (const struct llama_model * model); LLAMA_API int llama_model_n_layer(const struct llama_model * model);