Skip to content

Turn huggingface updates off by default to fix #2817#2832

Merged
TParcollet merged 1 commit into
speechbrain:developfrom
pplantinga:fetch-updates-default-off
Feb 25, 2025
Merged

Turn huggingface updates off by default to fix #2817#2832
TParcollet merged 1 commit into
speechbrain:developfrom
pplantinga:fetch-updates-default-off

Conversation

@pplantinga

@pplantinga pplantinga commented Feb 20, 2025

Copy link
Copy Markdown
Collaborator

Fixes #2817

When the files exist locally, we don't want to hit the network unless specifically requested to. When this option is True, then fetch still downloads the model to the cache, even if it exists in the target directory, in case there's some update to the model.

This option is not yet made available through Pretrained.from_hparams but would be accessible if and when we merge #2828.

@pplantinga pplantinga added bug Something isn't working correctness Functionality not objectively broken, but may be surprising or wrong e.g. regarding literature labels Feb 20, 2025
@pplantinga pplantinga added this to the v1.0.3 milestone Feb 20, 2025
@pplantinga pplantinga self-assigned this Feb 20, 2025
@pplantinga

Copy link
Copy Markdown
Collaborator Author

The other thing that causes this issue is that the fetch parameters passed to from_hparams are not used for the pretrainer collect_files, but that function doesn't accept all the same arguments. In the special case of spkrec-ecapa-voxceleb the hparams file specifies that the files should be fetched from huggingface, even if they're available locally. Fixing that will also have to wait on #2828 .

@TParcollet TParcollet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me.

@TParcollet TParcollet merged commit 7edb139 into speechbrain:develop Feb 25, 2025
@pplantinga pplantinga deleted the fetch-updates-default-off branch March 6, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working correctness Functionality not objectively broken, but may be surprising or wrong e.g. regarding literature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] SpeechBrain version 1.0.2 broke local fetching

2 participants