-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[Variant] Add "variant" as input kwarg so to have better UX when downloading no_ema or fp16 weights #2305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[Variant] Add "variant" as input kwarg so to have better UX when downloading no_ema or fp16 weights #2305
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ab9ef6a
[Variant] Add variant loading mechanism
patrickvonplaten 91ee04e
clean
patrickvonplaten 0b45377
improve further
patrickvonplaten cbe2066
up
patrickvonplaten c760708
add tests
patrickvonplaten 8d77537
add some first tests
patrickvonplaten 4f6d13c
up
patrickvonplaten e329951
up
patrickvonplaten 847bc0f
Merge branch 'main' into add_variant
patrickvonplaten 710480d
use path splittetx
patrickvonplaten b506882
Merge branch 'main' into add_variant
patrickvonplaten 9262bbf
add deprecate
patrickvonplaten 4a0ff60
deprecation warnings
patrickvonplaten 04622d2
Merge branch 'add_variant' of https://github.com/huggingface/diffuser…
patrickvonplaten 010f2ed
improve docs
patrickvonplaten bdebb36
up
patrickvonplaten 73bf79f
up
patrickvonplaten 48226f7
up
patrickvonplaten 009ed74
Merge branch 'add_variant' of https://github.com/huggingface/diffuser…
patrickvonplaten 23ace69
fix tests
patrickvonplaten 9e09f62
Apply suggestions from code review
patrickvonplaten fb5d7b9
Merge branch 'add_variant' of https://github.com/huggingface/diffuser…
patrickvonplaten 70cf040
Apply suggestions from code review
patrickvonplaten 501446d
correct code format
patrickvonplaten 081cd1a
Merge branch 'add_variant' of https://github.com/huggingface/diffuser…
patrickvonplaten 61f7ff2
fix warning
patrickvonplaten 69e3659
Merge branch 'main' into add_variant
patrickvonplaten 81dc107
finish
patrickvonplaten f26abeb
Apply suggestions from code review
patrickvonplaten 57fbe8f
Apply suggestions from code review
patrickvonplaten cbffa77
Update docs/source/en/using-diffusers/loading.mdx
patrickvonplaten fb22078
Apply suggestions from code review
patrickvonplaten dbdd126
correct loading docs
patrickvonplaten 5bcd411
finish
patrickvonplaten f7b9fb7
Merge branch 'main' into add_variant
patrickvonplaten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could directly check the extension of
checkpoint_file
to know whether or not to load with safetensors. That way we wouldn't have to pass in variant