Skip to content

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

@Yhyyy-hhu

Description

@Yhyyy-hhu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions