I am trying to run an experiment with GPT2; i.e., I use model = GPT2Model.from_pretrained('gpt2-xl')
The error I get is a traceback which leads to OSError: [Errno 28] No space left on device: '/home/username/.cache/huggingface/transformers/tmpvuvw8j0t'
.
This is unlikely to be an error with my code itself, because the exact same code works fine for GPT3-1.3B and T5-Large (except of course for the model= .... line).
I think the issue is that it tries to download the GPT2 model and runs out of space on the device. The /home/username directory has a pretty small amount of storage; the /data/username directory is where most of the storage is. I'm not quite sure how to redirect it to download the weights on the latter directory, or if that would even help.
I'd really appreciate any help in resolving this!