summaryrefslogtreecommitdiff
path: root/llama.h
diff options
context:
space:
mode:
authorCebtenzzre <cebtenzzre@gmail.com>2023-09-08 11:43:35 -0400
committerGitHub <noreply@github.com>2023-09-08 11:43:35 -0400
commite64f5b55783e910d8287363895d652b4bea6527a (patch)
treedba460e07999ff2d9d0c4a7499e5cf3c591f9748 /llama.h
parent94f10b91ed69980f299441e49c8dbdb448f0ccc6 (diff)
examples : make n_ctx warning work again (#3066)
This was broken by commit e36ecdcc ("build : on Mac OS enable Metal by default (#2901)").
Diffstat (limited to 'llama.h')
-rw-r--r--llama.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/llama.h b/llama.h
index 5b95aaa8..37975beb 100644
--- a/llama.h
+++ b/llama.h
@@ -245,15 +245,17 @@ extern "C" {
LLAMA_API bool llama_mmap_supported (void);
LLAMA_API bool llama_mlock_supported(void);
- 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_vocab (const struct llama_context * ctx);
+ LLAMA_API int llama_n_ctx (const struct llama_context * ctx);
+ LLAMA_API int llama_n_ctx_train(const struct llama_context * ctx);
+ LLAMA_API int llama_n_embd (const struct llama_context * ctx);
LLAMA_API enum llama_vocab_type llama_vocab_type(const struct llama_context * ctx);
- 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_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_train(const struct llama_model * model);
+ LLAMA_API int llama_model_n_embd (const struct llama_model * model);
// Get a string describing the model type
LLAMA_API int llama_model_desc(const struct llama_model * model, char * buf, size_t buf_size);