Skip to content

Commit

Permalink
1.4.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten committed Sep 19, 2024
1 parent 992f4a0 commit e678136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mistral_common/tokens/tokenizers/tekken.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _decode_all(self, tokens: List[int], special_token_policy: SpecialTokenPolic
"```\nfrom mistral_common.tokens.tokenizers.mistral import MistralTokenizer"
"\nfrom mistral_common.tokens.tokenizers.tekken import SpecialTokenPolicy"
"\n\ntokenizer = MistralTokenizer.v3(is_tekken=True)"
"\ntokenizer.special_token_policy = SpecialTokenPolicy.IGNORE # or SpecialTokenPolicy.KEEP"
"\ntokenizer.instruct_tokenizer.tokenizer.special_token_policy = SpecialTokenPolicy.IGNORE # or SpecialTokenPolicy.KEEP"
"\n```"
)
elif special_token_policy == SpecialTokenPolicy.KEEP:
Expand Down

0 comments on commit e678136

Please sign in to comment.