config.json is missing
#1
by
FrancescoBonzi
- opened
Hi, thanks for sharing this work. I encountered an issue while downloading the model. I tried both:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Unbabel/wmt23-cometkiwi-da-xl", token="my_token")
model = AutoModelForMaskedLM.from_pretrained("Unbabel/wmt23-cometkiwi-da-xl", token="my_token")
and
from transformers import pipeline
pipe = pipeline("translation", model="Unbabel/wmt23-cometkiwi-da-xl", token="my_token")
I got the error:
OSError: Unbabel/wmt23-cometkiwi-da-xl does not appear to have a file named config.json. Checkout 'https://huggingface.co/Unbabel/wmt23-cometkiwi-da-xl/main' for available files.
How can I fix it?
Thanks,
Francesco
Hi Francesco, fo you to use this model you have to install comet and follow the instructions in the README. I believe this model is not usable as a MaskedLanguageModel like you are trying.
Using the code in the README another error occurs:
KeyError: "Model 'Unbabel/wmt23-cometkiwi-da-xl' not supported by COMET."
Have you acknowledge the model license ? If so you just have to run:
huggingface-cli login
# or using an environment variable
huggingface-cli login --token $HUGGINGFACE_TOKEN
And you should be able to use the model.
Oh thanks! Now it works π
FrancescoBonzi
changed discussion status to
closed