Skip to content

Commit ee2984b

Browse files
farbodbjfarbod
and
farbod
authored
py : fix wrong input type for raw_dtype in ggml to gguf scripts (#8928)
Co-authored-by: farbod <farbod.bjary82@gmail.com>
1 parent c8ddce8 commit ee2984b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: convert_llama_ggml_to_gguf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def load(self, data, offset):
116116
assert quant is not None, 'Unknown tensor type'
117117
(blksize, tysize) = quant
118118
offset += 12
119-
self.dtype= dtype
119+
self.dtype= gguf.GGMLQuantizationType(dtype)
120120
self.dims = struct.unpack(f'<{n_dims}I', data[offset:offset + (4 * n_dims)])
121121
offset += 4 * n_dims
122122
self.name = bytes(data[offset:offset + name_len])

0 commit comments

Comments
 (0)