Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Sep 20, 2023
1 parent 1e01e11 commit b1a70b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tiktoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def test_tiktoken(model_name: Optional[str], encoding_name: Optional[str],
# This means that the str: int vocab mapping doesn't work. Would have to look more into how other HF tokenizers handle this.
model_or_encoding_name = model_name or encoding_name
if model_or_encoding_name is not None:
expected_didnt_match = model_or_encoding_name_to_non_utf8_tokens.get(model_or_encoding_name)
expected_didnt_match = model_or_encoding_name_to_non_utf8_tokens.get(
model_or_encoding_name)
assert len(didnt_match) == expected_didnt_match
else:
raise NotImplementedError(
Expand Down

0 comments on commit b1a70b8

Please sign in to comment.