Loading pretrain model issue

#1
by ray869924 - opened

Hello,

When I load the pre-trained model using the following code, I encounter an issue related to the use_auth_token parameter.

The code is as follows:

from dgmr import DGMR
model = DGMR.from_pretrained("openclimatefix/dgmr")

The error message is as follows:

TypeError: NowcastingModelHubMixin._from_pretrained() missing 1 required positional argument: 'use_auth_token'
messageImage_1710149021758.jpg

I have attempted to input my Access Token, but it does not seem to resolve the problem. Could someone please advise on the appropriate steps to address this issue?

Thanks.
messageImage_1710149021758.jpg

Open Climate Fix org

Hi, I've opened a issue on the GitHub issue https://github.com/openclimatefix/skillful_nowcasting/issues/65 to go over it.

I solved the problem by adding the use_token parameter to hub_mixin.py. thanks

Open Climate Fix org

Awesome!

jacobbieker changed discussion status to closed

Sign up or log in to comment