From c8c2e950697db073f4735a3e23a0422186703b81 Mon Sep 17 00:00:00 2001 From: John <78893154+cmp-nct@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:08:36 +0100 Subject: [PATCH] Update reader.py --- gguf-py/examples/reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.