better documentation
This commit is contained in:
parent
bfcbb5bc32
commit
d0445a2eff
1 changed files with 4 additions and 2 deletions
6
llama.h
6
llama.h
|
@ -302,12 +302,14 @@ extern "C" {
|
|||
LLAMA_API float llama_rope_freq_scale_train(const struct llama_model * model);
|
||||
|
||||
// Functions to access the model's GGUF metadata scalar values
|
||||
// Note: array values are not returned by these functions
|
||||
// - The functions return the length of the string on success, or -1 on failure
|
||||
// - The output string is always null-terminated and cleared on failure
|
||||
// - GGUF array values are not supported by these functions
|
||||
|
||||
// Get metadata value as a string by key name
|
||||
LLAMA_API int llama_model_meta_val_str(const struct llama_model * model, const char * key, char * buf, size_t buf_size);
|
||||
|
||||
// Get number of metadata key/value pairs
|
||||
// Get the number of metadata key/value pairs
|
||||
LLAMA_API int llama_model_meta_count(const struct llama_model * model);
|
||||
|
||||
// Get metadata key name by index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue