Please help to fix this error

#3
by Anchalg - opened

I am getting this error in my program, can you help to fix

/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py in from_pretrained(cls, pretrained_model_name_or_path, cache_dir, force_download, local_files_only, token, revision, trust_remote_code, *init_inputs, **kwargs)
2071
2072 if all(full_file_name is None for full_file_name in resolved_vocab_files.values()):
-> 2073 raise EnvironmentError(
2074 f"Can't load tokenizer for '{pretrained_model_name_or_path}'. If you were trying to load it from "
2075 "'https://huggingface.co/models', make sure you don't have a local directory with the same name. "

OSError: Can't load tokenizer for 'cardiffnlp/twitter-roberta-base-offensive'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'cardiffnlp/twitter-roberta-base-offensive' is the correct path to a directory containing all relevant files for a RobertaTokenizerFast tokenizer.

Sign up or log in to comment