airllm icon indicating copy to clipboard operation
airllm copied to clipboard

Insuficient disk space

Open ulisesbussi opened this issue 9 months ago • 3 comments

Was trying to work with AutoModel.from_pretrained("v2ray/Llama-3-70B") but the space in C:\Users\myuser.cache... was insuficient. So I was wondering if there was a way to change the location of the cache for the library. I've readed the code diagonally and didn't find an option

ulisesbussi avatar Apr 29 '24 22:04 ulisesbussi

I would like to know the default location as well. I am using MacOS.

moming2k avatar May 03 '24 00:05 moming2k

I found it in my home path .cache/huggingface/

I have moved this folder into my external harddisk and soft link this external harddisk folder to the original location.

moming2k avatar May 03 '24 00:05 moming2k

easy. You can do this:

Set custom cache directories and token

os.environ['HF_HOME'] = os.environ['TRANSFORMERS_CACHE'] = os.environ['HF_DATASETS_CACHE'] = os.environ['HF_MODULES_CACHE'] =

put the address to a location that you have enough space.

Tdrinker avatar Aug 05 '24 20:08 Tdrinker