Instructions to use openclimatefix/dgmr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openclimatefix/dgmr with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("openclimatefix/dgmr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Loading pretrain model issue
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?
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
Awesome!
