Fix custom code loading in Automodel by DN6 · Pull Request #12571 · huggingface/diffusers (original) (raw)
What does this PR do?
Oversight on my part when merging #12353
The resume_download kwarg is passed to get_class_from_dynamic_module in AutoModel. The argument isn't used anywhere downstream in the function, but there was no issue since the function accepted **kwargs
#12353 removed the **kwargs argument from get_class_from_dynamic_module, so now the function throws an unexpected keyword error. Removing resume_download to fix since it isn't used anywhere.
Fixes # (issue)
Before submitting
- This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- Did you read the contributor guideline?
- Did you read our philosophy doc (important for complex PRs)?
- Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
- Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings. - Did you write any new necessary tests?
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.