mindformers.pet

modules init

mindformers.pet.pet_config

mindformers.pet.pet_config.LoraConfig

Lora tuning algorithm config.

mindformers.pet.pet_config.Ptuning2Config

p tuning v2 tuning algorithm config.

mindformers.pet.tuners

mindformers.pet.tuners.ada_adapter.AdaAdapter

AdaAdapter is the adapter to modify the pretrained model, which uses adapter tuning algorithm.

mindformers.pet.tuners.adalora_adapter.AdaLoraAdapter

AdaLoraAdapter is the adapter to modify the pretrained model, which uses adapter lora tuning algorithm.

mindformers.pet.tuners.lora_adapter.LoraAdapter

LoraAdapter is the adapter to modify the pretrained model, which uses lora tuning algorithm.

mindformers.pet.tuners.pet_adapter.PetAdapter

PetAdapter is the base class of adapter to modify the pretrained model.

mindformers.pet.tuners.prefix_tuning_adapter.PrefixTuningAdapter

Prefix tuning implement.