I'm using the Huggingface's Transformers pipeline function to download the model and the tokenizer, my Windows PC downloaded them but I don't know where they are stored on my PC. Can you please help me? 
from transformers import pipeline
qa_pipeline = pipeline(
"question-answering",
model="mrm8488/bert-multi-cased-finetuned-xquadv1",
tokenizer="mrm8488/bert-multi-cased-finetuned-xquadv1"
)
You can check the default location with:
import transformers #it is important to load the library before checking!
import os
os.environ['TRANSFORMERS_CACHE']
In case you want to change the default location, please have a lock at this answer.
The default folder for models is at ~/.cache/huggingface
And here's the doc from huggingface https://huggingface.co/docs/transformers/installation#cache-setup
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With