Skip to content

Commit 51d3b4a

Browse files
eizslaren
andauthored
Update convert-pth-to-ggml.py
Co-authored-by: slaren <2141330+slaren@users.noreply.github.com>
1 parent b17de2c commit 51d3b4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

convert-pth-to-ggml.py

+2-1
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)