Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee2984b

Browse filesBrowse files
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
Copy full SHA for ee2984b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎convert_llama_ggml_to_gguf.py

Copy file name to clipboardExpand all lines: convert_llama_ggml_to_gguf.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.