You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PiSSA, OLoRA: Delete initial adapter after conversion instead of the active adapter (huggingface#1933)
Resolveshuggingface#1860
As discussed in that issue, it's not user friendly to delete the default
adapter of a PiSSA/OLoRA model after calling save_pretrained with weight
conversion. Instead, it is much more intuitive to delete the initial
adapter instead, since it is loaded inside the method and not by the
user, so it's really an implementation detail.
Apart from this, I made the following related changes:
- Put everything in a try ... finally to ensure that the initial adapter
does not hang around if there is an error (thus not hogging memory).
- Renamed initial_adapter to initial_adapter_name, to make it clear that
this is the name and not the adapter itself.
0 commit comments