huggingface-transformers - Predictor.from_path('coref-spanbert-large-2021.03.10.tar.gz') 将模型下载到缓存中,尽管我提供了模型的本地副本
问题描述
我正在尝试使用加载coref-spanbert
模型的本地副本,Predictor.from_path
但它开始再次将模型下载到缓存/拥抱面中。谁能帮我解决这个问题。
>>> from allennlp.predictors import Predictor
>>> coref_model = Predictor.from_path('coref-spanbert-large-2021.03.10.tar.gz')
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 414/414 [00:00<00:00, 436kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 213k/213k [00:00<00:00, 239kB/s]
Downloading: 34%|███████████████████████████████████████████████████
解决方案
推荐阅读
- android - Xamarin Android Firebase 用户:如何获取创建日期
- python - jsons 中集合的最佳实践:array vs dict/map
- azure - 将 json 数组发布到 Azure 上的 Spring 控制器时出现 400 错误请求
- java - 在数据库中存储一个大字符串?
- microsoft-graph-api - 如何使用 Graph API 从共享点获取列表项
- java - 相同的 log4j2 xml 但输出不同
- python - 带有 Tkinter Python 3 的文本编辑器
- javascript - 根据数组设置 ng-checked
- powerbi - 使用 DAX 计算每个索引的最新日期
- javascript - Javascript 大写