Skip to content

Commit

Permalink
remove unnecessory ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Apr 23, 2024
1 parent cbfec68 commit f2ed1d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,7 @@ def build_tokenizer(
int(1e30),
)

if not hasattr(
tokenizer, 'eos_token'
) or tokenizer.eos_token is None: # type: ignore (sometime's it's not none but that's ok too)
if not hasattr(tokenizer, 'eos_token') or tokenizer.eos_token is None:
raise ValueError(
f'The tokenizer {tokenizer_name} must have an eos_token.')

Expand Down

0 comments on commit f2ed1d7

Please sign in to comment.