-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[docs] minor cleanups in the lora docs. #11770
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
base: main
Are you sure you want to change the base?
Conversation
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. |
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.
Thanks for cleaning up 🧼
adapter_names (`Union[List[str], str]`): | ||
The names of the adapter to delete. Can be a single string or a list of strings | ||
The names (single string or list of strings) of the adapter to delete. |
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.
The names (single string or list of strings) of the adapter to delete. | |
The names of the adapters to delete. |
Args: | ||
Deletes the LoRA layers of `adapter_name` for the unet and text-encoder(s). | ||
adapter_names (`Union[List[str], str]`): |
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.
adapter_names (`Union[List[str], str]`): | |
adapter_names (`List[str]` or `str`): |
"""Enables the possibility to hotswap LoRA adapters. | ||
|
||
Calling this method is only required when hotswapping adapters and if the model is compiled or if the ranks of | ||
the loaded adapters differ. |
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.
"""Enables the possibility to hotswap LoRA adapters. | |
Calling this method is only required when hotswapping adapters and if the model is compiled or if the ranks of | |
the loaded adapters differ. | |
""" | |
Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are different. |
How to handle the case when the model is already compiled, which should generally be avoided. The | ||
options are: |
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.
How to handle the case when the model is already compiled, which should generally be avoided. The | |
options are: | |
How to handle a model that is already compiled. The check can return the following messages: |
What does this PR do?