Skip to content

Commit

Permalink
Update convert-pth-to-ggml.py
Browse files Browse the repository at this point in the history
Co-authored-by: slaren <2141330+slaren@users.noreply.github.com>
  • Loading branch information
eiz and slaren committed Mar 18, 2023
1 parent b17de2c commit 51d3b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert-pth-to-ggml.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def get_n_parts(dim):
text = tokenizer.id_to_piece(i).replace("\u2581", " ").encode("utf-8")
fout.write(struct.pack("i", len(text)))
fout.write(text)
fout.write(struct.pack("f", tokenizer.get_score(i)))

fout.write(struct.pack("f", tokenizer.get_score(i)))

for k, v in model.items():
name = k
Expand Down

0 comments on commit 51d3b4a

Please sign in to comment.