到今天为止,我一直用的是变压器。但是,当我今天导入包时,我收到了以下错误消息:
In Transformers v4.0.0, the default path to cache downloaded models changed from '~/.cache/torch/transformers' to '~/.cache/huggingface/transformers'. Since you don't seem to have overridden and '~/.cache/torch/transformers' is a directory that exists, we're moving it to '~/.cache/huggingface/transformers' to avoid redownloading models you have already in the cache. You should only see this message once.
Error: Destination path '/home/user/.cache/huggingface/transformers/transformers' already exists我试图安装和卸载软件包,但仍然无法使它工作。
任何解决这一问题的建议都将不胜感激。
发布于 2020-12-20 23:41:46
由于它似乎是一个缓存文件,只需将/huggingface/ dir移动到/huggingface.bak
那么你应该可以重新运行脚本了。
发布于 2020-12-21 11:23:05
由于约书亚,上述问题通过以下命令得到了解决:
mv ~/.cache/huggingface/transformers ~/.cache/huggingface-tmphttps://stackoverflow.com/questions/65383059
复制相似问题