replace llama_n_mult by llama_n_ff

This commit is contained in:
xaedes 2023-08-29 00:40:53 +02:00
parent aa8016e95d
commit daedc6f419
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1
2 changed files with 6 additions and 6 deletions

View file

@ -5572,8 +5572,8 @@ int llama_n_embd(const struct llama_context * ctx) {
return ctx->model.hparams.n_embd; return ctx->model.hparams.n_embd;
} }
int llama_n_mult(const struct llama_context * ctx) { int llama_n_ff(const struct llama_context * ctx) {
return ctx->model.hparams.n_mult; return ctx->model.hparams.n_ff;
} }
int llama_n_head(const struct llama_context * ctx) { 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; return model->hparams.n_embd;
} }
int llama_model_n_mult(const struct llama_model * model) { int llama_model_n_ff(const struct llama_model * model) {
return model->hparams.n_mult; return model->hparams.n_ff;
} }
int llama_model_n_head(const struct llama_model * model) { int llama_model_n_head(const struct llama_model * model) {

View file

@ -247,7 +247,7 @@ extern "C" {
LLAMA_API int llama_n_vocab(const struct llama_context * ctx); 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_ctx (const struct llama_context * ctx);
LLAMA_API int llama_n_embd (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_head (const struct llama_context * ctx);
LLAMA_API int llama_n_rot (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); 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_vocab(const struct llama_model * model);
LLAMA_API int llama_model_n_ctx (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_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_head (const struct llama_model * model);
LLAMA_API int llama_model_n_rot (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); LLAMA_API int llama_model_n_layer(const struct llama_model * model);