huggingface的使用记录:
1 具体使用教程参考文章:
https://zhuanlan.zhihu.com/p/143161582
模型,字典等默认下载到本机(linux)的路径
获取路径的代码
hf_cache_home = os.path.expanduser(
os.getenv("HF_HOME", os.path.join(os.getenv("XDG_CACHE_HOME", "~/.cache"), "huggingface"))
)
实际下载地址示例:
/home/your_user_root/.cache/huggingface