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.
Pull Request
Description
DGMR
andNowcastingModelHubMixin
in their present form are incompatible withhuggingface-hub>=0.22
, causing aKeyError: 'config'
when trying to load the model withmodel = DGMR.from_pretrained("openclimatefix/dgmr")
. This PR pinshuggingface-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: