Skip to content

Commit 38b431d

Browse files
authored
gguf : fix "general.alignment" type in gguf_reader.py (#5136)
1 parent aad0b01 commit 38b431d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gguf-py/gguf/gguf_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, path: os.PathLike[str] | str, mode: Literal['r' | 'r+' | 'c']
107107
offs, tensors_fields = self._build_tensors_fields(offs, tensor_count)
108108
new_align = self.fields.get('general.alignment')
109109
if new_align is not None:
110-
if new_align.types != [GGUFValueType.UINT64]:
110+
if new_align.types != [GGUFValueType.UINT32]:
111111
raise ValueError('Bad type for general.alignment field')
112112
self.alignment = new_align.parts[-1][0]
113113
padding = offs % self.alignment

0 commit comments

Comments
 (0)