fix: Fixes wrong input type for raw_dtype in ggml to gguf scripts
This commit is contained in:
parent
1e6f6554aa
commit
66a4225825
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class Tensor:
|
||||||
assert quant is not None, 'Unknown tensor type'
|
assert quant is not None, 'Unknown tensor type'
|
||||||
(blksize, tysize) = quant
|
(blksize, tysize) = quant
|
||||||
offset += 12
|
offset += 12
|
||||||
self.dtype= dtype
|
self.dtype= gguf.GGMLQuantizationType(dtype)
|
||||||
self.dims = struct.unpack(f'<{n_dims}I', data[offset:offset + (4 * n_dims)])
|
self.dims = struct.unpack(f'<{n_dims}I', data[offset:offset + (4 * n_dims)])
|
||||||
offset += 4 * n_dims
|
offset += 4 * n_dims
|
||||||
self.name = bytes(data[offset:offset + name_len])
|
self.name = bytes(data[offset:offset + name_len])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue