Repository navigation
Default to the release tag only for the released repository - #13
Merged
Merged
Conversation
from_pretrained pinned revision="v1.0.0" for every repository, so a fine-tune without that tag failed to load, including through the Hub's "Use this model" snippet. The tag is now the default for software-mansion/Reverb-TTS only; other repositories load their latest commit unless you pass a revision.
IgorSwat
reviewed
Nov 24, 2026
| - dtype: by default bfloat16 on CUDA (float16 without bf16 support), float16 on MPS and float32 on the CPU. | ||
| """ | ||
|
|
||
| revision = revision or (REVISION if str(name_or_path) == REPOSITORY else None) |
Collaborator
There was a problem hiding this comment.
By sillicon friend:
The name match is case-sensitive. The new line is str(name_or_path) == REPOSITORY.
Hugging Face repo names are case-insensitive, so TTS.from_pretrained("software-mansion/reverb-tts") loads the official weights but from the latest commit instead of v1.0.0.
Today that gives the same weights, because the commits after the tag only touch the README and add a root config.json. It would quietly stop being pinned once main gets new weights.
A one-word fix is to compare str(name_or_path).lower() == REPOSITORY.lower().
Is this the intended effect, that we want to load from main and not v1.0.0?
Collaborator
Author
There was a problem hiding this comment.
Good catch, not intended. Only fine-tunes should load main. Any spelling of software-mansion/Reverb-TTS should stay on v1.0.0. The Hub does resolve software-mansion/reverb-tts to our repo (checked), so I've made the comparison case-insensitive and added that case to the test.
The Hub resolves repository names in any case, so software-mansion/reverb-tts is the released repository too and stays on v1.0.0.
IgorSwat
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TTS.from_pretrainedpinsrevision="v1.0.0"for every repository, so a fine-tune without av1.0.0tag fails to load. That includes the Hub's "Use this model" snippet, which huggingface/huggingface.js#2928 shows on every model taggedreverb-tts. The maintainer pointed this out in their review.Changes
revisiondefaults toNone. Forsoftware-mansion/Reverb-TTSit still resolves tov1.0.0. Any other repository loads its latest commit, the same way the codec revision already works.software-mansion/Reverb-TTS.This merges cleanly with #11.
Testing
pytest: 54 passed, including a new test for the four cases: the released repository and another repository, each with and without a revision.main, the new test fails for another repository without a revision, the case from the review, and passes with this change.🤖 Generated with Claude Code