mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	better documentation
This commit is contained in:
		
							
								
								
									
										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); |     LLAMA_API float llama_rope_freq_scale_train(const struct llama_model * model); | ||||||
|  |  | ||||||
|     // Functions to access the model's GGUF metadata scalar values |     // 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 |     // 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); |     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); |     LLAMA_API int llama_model_meta_count(const struct llama_model * model); | ||||||
|  |  | ||||||
|     // Get metadata key name by index |     // Get metadata key name by index | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 slaren
					slaren