-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[LoRA] add an error message when dealing with _best_guess_weight_name ofline #6184
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
Conversation
Wauplin
left a comment
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.
Looks good to me @sayakpaul! Thanks for working on this. Agree with you that if another more complete solution already exists then let's not spend too much time maintaining this use case.
src/diffusers/loaders/lora.py
Outdated
| f for f in os.listdir(pretrained_model_name_or_path_or_dict) if f.endswith(file_extension) | ||
| ] | ||
| else: | ||
| elif not local_files_only: |
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.
I don't understand why this change. Given we raise an exception above if local_files_only is True, then it's not needed to check it here, right?
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.
Right. Resolved in 88b93c9.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
… ofline (huggingface#6184) * add an error message when dealing with _best_guess_weight_name ofline * simplify condition
… ofline (huggingface#6184) * add an error message when dealing with _best_guess_weight_name ofline * simplify condition
… ofline (huggingface#6184) * add an error message when dealing with _best_guess_weight_name ofline * simplify condition
What does this PR do?
Potentially fixes: #6089. #6110 is related too. I decided to throw an error rather than trying to engineer a solution. I think that's best here because
_best_guess_weight_name()solves a particular use case and I don't think we should overengineer it.