Skip to content

Commit

Permalink
style: Black
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Jun 10, 2024
1 parent baff354 commit ef03abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions outlines/fsm/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ def create_fsm_index_end_to_end(

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

# The "▁*" prefix is required to handle Gemma and GPT-SW3 tokenizers, and the "\.*"
# suffix is required to handle the NorwAI tokenizer.
# The "▁*" prefix is required to handle Gemma and GPT-SW3 tokenizers, and the "\.*"
# suffix is required to handle the NorwAI tokenizer.
re_replacement_seq = re.compile(r"^▁*�+\.*$")


Expand Down
2 changes: 1 addition & 1 deletion tests/fsm/test_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numba
import numpy as np
import pytest
from transformers import AutoTokenizer, PreTrainedTokenizerBase
from transformers import AutoTokenizer

from outlines.fsm.regex import (
_walk_fsm,
Expand Down

0 comments on commit ef03abb

Please sign in to comment.