Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Predictor.from_path('coref-spanbert-large-2021.03.10.tar.gz') downloads model into cache though I provide a local copy of the model #5448

Closed
irshadbhat opened this issue Oct 26, 2021 · 3 comments

Comments

@irshadbhat
Copy link

irshadbhat commented Oct 26, 2021

I am trying to load a local copy of the coref-spanbert model using Predictor.from_path but it starts downloading the model again into cache/huggingface. How do I fix this.

>>> 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%|███████████████████████████████████████████████████
@epwalsh epwalsh self-assigned this Oct 29, 2021
@github-actions
Copy link

@epwalsh this is just a friendly ping to make sure you haven't forgotten about this issue 😜

@epwalsh epwalsh removed their assignment Nov 15, 2021
@github-actions
Copy link

This issue is being closed due to lack of activity. If you think it still needs to be addressed, please comment on this thread 👇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants