diff --git a/gguf-py/examples/reader.py b/gguf-py/examples/reader.py index a2bef3c51..3d455e8a3 100644 --- a/gguf-py/examples/reader.py +++ b/gguf-py/examples/reader.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 import sys from pathlib import Path +from gguf.gguf_reader import GGUFReader + sys.path.insert(0, str(Path(__file__).parent.parent)) -from gguf.gguf_reader import GGUFReader - def read_gguf_file(gguf_file_path): """ Reads and prints key-value pairs and tensor information from a GGUF file in an improved format.