replace llama_n_mult by llama_n_ff
This commit is contained in:
parent
aa8016e95d
commit
daedc6f419
2 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
4
llama.h
4
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue