您可以使用以下命令检查默认位置:
import transformers #it is important to load the library before checking!
import os
os.environ['TRANSFORMERS_CACHE']
如果您想更改默认位置,请查看这个答案。
~/.cache/huggingface
。
这是来自huggingface的文档https://huggingface.co/docs/transformers/installation#cache-setup。