Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedivy committed Feb 19, 2024
1 parent aac75c8 commit 29bee94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minbpe/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def save(self, file_prefix):
model_file = file_prefix + ".model"
with open(model_file, 'w') as f:
# write the version, pattern and merges, that's all that's needed
f.write(f"minbpe v1\n")
f.write("minbpe v1\n")
f.write(f"{self.pattern}\n")
# write the special tokens, first the number of them, then each one
f.write(f"{len(self.special_tokens)}\n")
Expand Down

0 comments on commit 29bee94

Please sign in to comment.