Skip to content

Fix _from_pretrained signature for huggingface_hub>=0.23 compatibility#11

Open
nickpierce24 wants to merge 1 commit intoNVIDIA:mainfrom
nickpierce24:fix-hf-hub-pretrained-signature
Open

Fix _from_pretrained signature for huggingface_hub>=0.23 compatibility#11
nickpierce24 wants to merge 1 commit intoNVIDIA:mainfrom
nickpierce24:fix-hf-hub-pretrained-signature

Conversation

@nickpierce24
Copy link
Copy Markdown

BigVGAN’s requirements.txt specifies huggingface_hub>=0.23.4, but the _from_pretrained method in bigvgan.py still uses the older signature from pre‑0.20 versions of the HuggingFace Hub API.
This causes the following error when calling BigVGAN.from_pretrained():

TypeError: BigVGAN._from_pretrained() missing 2 required keyword-only arguments: 'proxies' and 'resume_download'

This PR updates the method signature to match the current ModelHubMixin API. The fix is minimal and restores compatibility with the required HF Hub version.

Testing

  • Verified locally in a clean environment
  • from_pretrained() now loads models without error
  • No other functionality affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant