Skip to content

Commit 8d32441

Browse files
eizslaren
andcommitted
Update convert-pth-to-ggml.py
Co-authored-by: slaren <[email protected]>
1 parent e33ae7a commit 8d32441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

convert-pth-to-ggml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def get_n_parts(dim):
126126
text = tokenizer.id_to_piece(i).replace("\u2581", " ").encode("utf-8")
127127
fout.write(struct.pack("i", len(text)))
128128
fout.write(text)
129-
fout.write(struct.pack("f", tokenizer.get_score(i)))
129+
130+
fout.write(struct.pack("f", tokenizer.get_score(i)))
130131

131132
for k, v in model.items():
132133
name = k

0 commit comments

Comments
 (0)