Skip to content

Commit

Permalink
Merge pull request #56 from AGI-Collective/floatingbigcat-patch-1
Browse files Browse the repository at this point in the history
Update tokenizer.py
  • Loading branch information
floatingbigcat authored Sep 25, 2023
2 parents d9e0098 + c58f81f commit 28e2444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/tokenizer/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def vocab(self):
def inv_vocab(self):
return self.tokenizer.decoder

def tokenize(self, texts: Union[str, List[str]], pad=True, tensor=True, context_length=2048):
def tokenize(self, texts: Union[str, List[str]], pad=True, tensor=True):
if isinstance(texts, str):
texts = [texts]
texts = [whitespace_clean(basic_clean(text)) for text in texts]
Expand Down

0 comments on commit 28e2444

Please sign in to comment.