Skip to content

Commit

Permalink
py : fix wrong input type for raw_dtype in ggml to gguf scripts (#8928)
Browse files Browse the repository at this point in the history
Co-authored-by: farbod <[email protected]>
  • Loading branch information
farbodbj and farbod authored Aug 16, 2024
1 parent c8ddce8 commit ee2984b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert_llama_ggml_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def load(self, data, offset):
assert quant is not None, 'Unknown tensor type'
(blksize, tysize) = quant
offset += 12
self.dtype= dtype
self.dtype= gguf.GGMLQuantizationType(dtype)
self.dims = struct.unpack(f'<{n_dims}I', data[offset:offset + (4 * n_dims)])
offset += 4 * n_dims
self.name = bytes(data[offset:offset + name_len])
Expand Down

0 comments on commit ee2984b

Please sign in to comment.