missing config.json

#1
by mmoreaux - opened

Hello, I'm new to HF.
I tried to run locally the python code provided on the main page but I get a error:

from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-french-europeana-cased")
model = AutoModel.from_pretrained("dbmdz/bert-base-french-europeana-cased")

OSError: dbmdz/bert-base-french-europeana-cased does not appear to have a file named config.json. Checkout 'https://huggingface.co/dbmdz/bert-base-french-europeana-cased/None' for available files.

Is it normal ? Do I have to DL the model ?
Thank you

I finally found out that HF created a local directory at ./dbmdz/ wich is where the python code was searching for config.json
Deleting the local directory solved the issue.

mmoreaux changed discussion status to closed

And even later I realized that the 1st parameter of my TrainingArguments() function was "dbmdz/bert-base-french-europeana-cased" wich was the save_dir.

Which means that I was doing:

TrainingArguments(
     save_dir="dbmdz/bert-base-french-europeana-cased")

And that was a producing quite a mess... πŸ€¦β€β™‚οΈ

Sign up or log in to comment