Skip to content

Commit

Permalink
Update src/transformers/tokenization_utils_base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain Gugger <[email protected]>
  • Loading branch information
LysandreJik and sgugger authored Jan 26, 2021
1 parent 06c82f2 commit 10518fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike],
if len(unresolved_files) > 0:
logger.info(
f"Can't load following files from cache: {unresolved_files} and cannot check if these "
f"files are necessary for the tokenizer to operate."
"files are necessary for the tokenizer to operate."
)

if all(full_file_name is None for full_file_name in resolved_vocab_files.values()):
Expand Down

0 comments on commit 10518fe

Please sign in to comment.