Battle notes
We will put some notes about the problem we encouter and investigated here, so can save time later and for reference purpose.
Set HuggingFace Cache Folder
If you want to load a model from huggingface, it will need to download the model from cloud, and save it somewhere. This "somewhere" is a cache places to save the file, normally it will be within ~/.cache/huggingface/hub
This will be fine for your local machine, however, when you run it on the Kaya, it will not be ok, as you have limited storage place under your home directory => ~
. So you will need to change the params to another directory, normally it should under your group or sbatch folder.
To achieve that, the official guide give several ways to do that, including incode or from shell environment.
Specifically for the Kaya, if you set it inside your python code, it probably will not work, you need to set it inside your .slurm
file, something like this:
This is the key line to make it work.
Last updated