You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I runned the train.py with gpw2 fine-tunning Here is the error reported:
Traceback (most recent call last):
File "train.py", line 370, in
main()
File "train.py", line 354, in main
dataset = ClipCocoDataset(args.data, prefix_length, normalize_prefix=args.normalize_prefix)
File "train.py", line 51, in init
self.tokenizer = GPT2Tokenizer.from_pretrained(gpt2_type)
File "/data/anaconda3/envs/langwmz/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 2197, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'gpt2'. 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 'gpt2' is the correct path to a directory containing all relevant files for a GPT2Tokenizer tokenizer.
The text was updated successfully, but these errors were encountered:
When I runned the train.py with gpw2 fine-tunning
Here is the error reported:
Traceback (most recent call last):
File "train.py", line 370, in
main()
File "train.py", line 354, in main
dataset = ClipCocoDataset(args.data, prefix_length, normalize_prefix=args.normalize_prefix)
File "train.py", line 51, in init
self.tokenizer = GPT2Tokenizer.from_pretrained(gpt2_type)
File "/data/anaconda3/envs/langwmz/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 2197, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'gpt2'. 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 'gpt2' is the correct path to a directory containing all relevant files for a GPT2Tokenizer tokenizer.
The text was updated successfully, but these errors were encountered: