Skip to content

Commit

Permalink
fix: tokenizer with no whitespace prefix will no longer fail (#1195)
Browse files Browse the repository at this point in the history
Co-authored-by: niklas.finken <[email protected]>
  • Loading branch information
NiklasKoehneckeAA and NickyHavoc authored Jan 7, 2025
1 parent b669860 commit 0945f10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/intelligence_layer/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ def _tokenizer_no_whitespace_prefix(
copied_tokenizer.pre_tokenizer.add_prefix_space = False
return copied_tokenizer

raise ValueError(
"Tokenizer does not support `.pre_tokenizer` and thus `.add_prefix_space` option."
)
return tokenizer


@lru_cache(maxsize=10)
Expand Down

0 comments on commit 0945f10

Please sign in to comment.