better documentation

This commit is contained in:
slaren 2023-11-10 01:38:20 +01:00
parent bfcbb5bc32
commit d0445a2eff

View file

@ -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