Skip to content

Commit

Permalink
py : fix wrong input type for raw_dtype in ggml to gguf scripts (gger…
Browse files Browse the repository at this point in the history
…ganov#8928)

Co-authored-by: farbod <[email protected]>
  • Loading branch information
2 people authored and arthw committed Nov 15, 2024
1 parent 3f43b6e commit 5b85cc6
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 5b85cc6

Please sign in to comment.