mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	tests: add tests for GGUF (#10830)
This commit is contained in:
		| @@ -551,6 +551,22 @@ static inline ggml_bf16_t ggml_compute_fp32_to_bf16(float s) { | ||||
| #define GGML_FP32_TO_BF16(x) ggml_compute_fp32_to_bf16(x) | ||||
| #define GGML_BF16_TO_FP32(x) ggml_compute_bf16_to_fp32(x) | ||||
|  | ||||
| // expose GGUF internals for test code | ||||
|  | ||||
| GGML_API size_t gguf_type_size(enum gguf_type type); | ||||
|  | ||||
| GGML_API struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_params params); | ||||
|  | ||||
| struct gguf_buf { | ||||
|     void * data; | ||||
|     size_t size; | ||||
|     size_t offset; | ||||
| }; | ||||
| GGML_API struct gguf_buf gguf_buf_init(size_t size); | ||||
| GGML_API void gguf_buf_free(struct gguf_buf buf); | ||||
|  | ||||
| GGML_API void gguf_write_to_buf(const struct gguf_context * ctx, struct gguf_buf * buf, bool only_meta); | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johannes Gäßler
					Johannes Gäßler