Skip to content

Commit

Permalink
Clarify docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBossan committed Jan 31, 2025
1 parent 66b987e commit d32d23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peft/utils/hotswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def prepare_model_for_compiled_hotswap(
"""
Helper function that prepares the model so that it can later be compiled and then used with hot-swapping.
It is necessary to call this function on the model for hot-swapping to work if
It is necessary to call this function on the model for hot-swapping to work if both of these are true:
- the different LoRA adapters have different ranks and/or different alpha values (i.e. scalings)
- you plan to torch.compile the model and want to avoid re-compilation
Expand Down

0 comments on commit d32d23f

Please sign in to comment.