This commit is contained in:
Awni Hannun 2024-12-17 09:10:01 -08:00
parent 34c9cfcc3c
commit eb81e97963

View File

@ -158,9 +158,6 @@ class BPEStreamingDetokenizer(StreamingDetokenizer):
_space_matches = (".", "?", "!", ",", "n't", "'m", "'s", "'ve", "'re")
def __init__(self, tokenizer):
self.tokenizer = tokenizer
self.clean_spaces = tokenizer.clean_up_tokenization_spaces
# Extract the tokens in a list from id to text