Alibaba-NLP / ACE

[ACL-IJCNLP 2021] Automated Concatenation of Embeddings for Structured Prediction
Other
296 stars 44 forks source link

Change the directory of downloading #49

Closed benliu5085 closed 1 year ago

benliu5085 commented 1 year ago

Hi, this should be trivial issue but I hope you can still help me out.

I set up the framework and the code indeed try to download embedding automatically. The issue is that it tries to put the downloaded embedding to ~/.cache/torch, however I have limited space in the default directory.

I am wondering, is there a way to change the default downloading to other directory?

Thank you for your time.

benliu5085 commented 1 year ago

Never mind I found the solution, just use the environment variable to control the home for transformers.