How to pre-install a Huggingface transformer model #10512
-
Hi all,
However, if I run this ahead of time, the spacy train workflow doesn't seem to find it and tries to download it again. Is there a way to pre-download a huggingface model in a way that spacy train can find it later? Let me know. Thanks for all ya'll do! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Internally You can also download/save it to a local directory and use that in place of |
Beta Was this translation helpful? Give feedback.
spacy train
shouldn't download it again (well, that's not entirely true, I think it does download it again if you have internet access and there are updates), so double-check that you haven't modified the cache settings/paths in any of the environments you're working in, or that there haven't been updates upstream since the last time you used it.Internally
spacy
is calling the same methods as above, so there's nothing custom about how it's getting loaded from huggingface in the background.You can also download/save it to a local directory and use that in place of
emilyalsentzer/Bio_ClinicalBERT
above, and then you know for sure that it's just loading from the local path AND that it does…