Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading model using DGMR.from_pretrained("openclimatefix/dgmr") fails with missing 1 argument "use_auth_token" #76

Open
Yhyyy-hhu opened this issue Aug 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Yhyyy-hhu
Copy link

Describe the bug

I tried to load the trained weights following the Readme.
It turns out to have another Error different from previous issue, which is "_from_pretrained() missing 1 required positional argument: 'use_auth_token'"

To Reproduce

Steps to reproduce the behavior:

  1. from dgmr import DGMR
  2. model = DGMR.from_pretrained("openclimatefix/dgmr")
  3. I have tried to add the argument "use_auth_token = my hugging face token", or login my huggingface token in the terminal with my token, or set environmental variable with my token, but all turn out to fail. The Error exists.
error

Expected behavior

I expect to load the pretrained model.

@Yhyyy-hhu Yhyyy-hhu added the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant