openclimatefix / skillful_nowcasting

Implementation of DeepMind's Deep Generative Model of Radar (DGMR) https://arxiv.org/abs/2104.00954
MIT License
211 stars 59 forks source link

Pin huggingface-hub to version 0.21.4 #69

Closed agijsberts closed 2 months ago

agijsberts commented 2 months ago

Pull Request

Description

DGMR and NowcastingModelHubMixin in their present form are incompatible with huggingface-hub>=0.22, causing a KeyError: 'config' when trying to load the model with model = DGMR.from_pretrained("openclimatefix/dgmr"). This PR pins huggingface-hub to the latest working version for the moment, until a full solution can be developed.

Fixes https://github.com/openclimatefix/skillful_nowcasting/issues/68

How Has This Been Tested?

Checked that the package installs and model loads as expected.

Checklist:

peterdudfield commented 2 months ago

@all-contributors please add @agijsberts for code

allcontributors[bot] commented 2 months ago

@peterdudfield

I've put up a pull request to add @agijsberts! :tada: