Skip to content

Commit

Permalink
fixed parsing token vocabularies for gemma and gpt-sw3 models
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvladimir authored and rlouf committed Mar 25, 2024
1 parent f7cafe5 commit c744e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outlines/fsm/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def create_fsm_index_end_to_end(


re_llama_byte_token = re.compile(r"^<0x[0-9A-F]{2}>$")
re_replacement_seq = re.compile(r"^�+$")
re_replacement_seq = re.compile(r"^▁*�+$")


# Copied from transformers.models.gpt2.tokenization_gpt2.bytes_to_unicode
Expand Down

0 comments on commit c744e25

Please sign in to comment.