mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	Refactor gguf scripts to improve metadata handling (#11909)
* Refactor gguf scripts to improve metadata handling Added contents method to ReaderField class Added endianess property to GGUFReader class * update scripts * fix import * remove unused import * attempt to work around flake and pyright errors * second attempt * give up, ignore type * bump version * apply newbyteorder fixes
This commit is contained in:
		| @@ -2,12 +2,14 @@ | ||||
| import logging | ||||
| import sys | ||||
| from pathlib import Path | ||||
| from gguf.gguf_reader import GGUFReader | ||||
|  | ||||
| logger = logging.getLogger("reader") | ||||
|  | ||||
| # Necessary to load the local gguf package | ||||
| sys.path.insert(0, str(Path(__file__).parent.parent)) | ||||
|  | ||||
| from gguf.gguf_reader import GGUFReader | ||||
|  | ||||
|  | ||||
| def read_gguf_file(gguf_file_path): | ||||
|     """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sigbjørn Skjæret
					Sigbjørn Skjæret