日常用到的模型下载主要是huggingface和modelscope,这两个默认的下载目录都在~/.cache中,修改默认cache路径方法如下
vi ~/.bash_profile
export MODELSCOPE_CACHE=/Users/xx/tools/cache/modelscope
export HF_DATASETS_CACHE=/Users/xx/tools/cache/huggingface
source ~/.bash_profile
日常用到的模型下载主要是huggingface和modelscope,这两个默认的下载目录都在~/.cache中,修改默认cache路径方法如下
vi ~/.bash_profile
export MODELSCOPE_CACHE=/Users/xx/tools/cache/modelscope
export HF_DATASETS_CACHE=/Users/xx/tools/cache/huggingface
source ~/.bash_profile