We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810f06b commit 94d814cCopy full SHA for 94d814c
gguf-py/gguf/gguf_reader.py
@@ -95,6 +95,7 @@ def __init__(self, path: os.PathLike[str] | str, mode: Literal['r', 'r+', 'c'] =
95
offs = 0
96
97
# Check for GGUF magic
98
+ self.data.seek(offs)
99
if struct.unpack("<I", self.data.read(4))[0] != GGUF_MAGIC:
100
raise ValueError('GGUF magic invalid')
101
offs += 4
0 commit comments