The integrations.PeftAdapterMixin provides functions from the PEFT library for managing adapters with Transformers. This mixin supports all non-prompt-learning PEFT methods…
PEFT
The integrations.PeftAdapterMixin provides functions from the PEFT library for managing adapters with Transformers. This mixin supports all non-prompt-learning PEFT methods (LoRA, IA3, AdaLoRA, and others). Prefix tuning methods (prompt tuning, prompt learning) aren't supported because they can't be injected into a torch module.
[[autodoc]] integrations.PeftAdapterMixin - load_adapter - add_adapter - set_adapter - disable_adapters - enable_adapters - enable_peft_hotswap - active_adapters - get_adapter_state_dict - delete_adapter
Source and license
Source: Transformers documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.