Skip to content
class

PeftType

extendsStrEnum
PeftType()

The parameter-efficient method an adapter file holds.

The members are the reference library's peft_type strings, so a config file names its method the same way on both sides. Every member has a config class that reads and writes adapter_config.json, and every one but SHADOW has an adapter that can be built. The first twenty-six: the LoRA family (LORA, ADALORA), the orthogonal and LyCORIS families (OFT, BOFT, HRA, LOHA, LOKR), the shared-table tuners (VERA, VBLORA, RANDLORA), the structured and sparse updates (MISS, its predecessor BONE, SHIRA, C3A, FOURIERFT), IA3, LN_TUNING, TRAINABLE_TOKENS, the prompt-learning methods (PROMPT_TUNING, MULTITASK_PROMPT_TUNING, PREFIX_TUNING, P_TUNING, CPT), the adaption prompt (ADAPTION_PROMPT) and the routing and mixing methods (POLY, XLORA). The other nineteen are the methods the reference library added since (DELORA … ADAMSS; see lucid.peft.tuners). SHADOW is refused for good: building it raises NotImplementedError. A file that names a type no config reads raises NotImplementedError.

Used by 99

… 87 more