PeftConfigMixin is the base configuration class for storing the adapter configuration of a PeftModel, and PromptLearningConfig is the base configuration class for soft prompt…
Configuration
PeftConfigMixin is the base configuration class for storing the adapter configuration of a PeftModel, and PromptLearningConfig is the base configuration class for soft prompt methods (p-tuning, prefix tuning, and prompt tuning). These base classes contain methods for saving and loading model configurations from the Hub, specifying the PEFT method to use, type of task to perform, and model configurations like number of layers and number of attention heads.
PeftConfigMixin
[[autodoc]] config.PeftConfigMixin - all
PeftConfig
[[autodoc]] PeftConfig - all
PromptLearningConfig
[[autodoc]] PromptLearningConfig - all
get_peft_config
[[autodoc]] mapping.get_peft_config
Source and license
Source: PEFT documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.