#
AutoPeftModels

The `AutoPeftModel` classes loads the appropriate PEFT model for the task type by automatically inferring it from the configuration file. They are designed to quickly and easily load a PEFT model in a single line of code without having to worry about which exact model class you need or manually loading a PeftConfig.

##
AutoPeftModel

###
class peft.AutoPeftModel

< source >

( *args **kwargs )

####
from_pretrained

< source >

( pretrained_model_name_or_path adapter_name: str = 'default' is_trainable: bool = False config: Optional[PeftConfig] = None revision: Optional[str] = None import_allowlist: Optional[list[str]] = None **kwargs )

##
AutoPeftModelForCausalLM

###
class peft.AutoPeftModelForCausalLM

< source >

( *args **kwargs )

##
AutoPeftModelForSeq2SeqLM

###
class peft.AutoPeftModelForSeq2SeqLM

< source >

( *args **kwargs )

##
AutoPeftModelForSequenceClassification

###
class peft.AutoPeftModelForSequenceClassification

< source >

( *args **kwargs )

##
AutoPeftModelForTokenClassification

###
class peft.AutoPeftModelForTokenClassification

< source >

( *args **kwargs )

##
AutoPeftModelForQuestionAnswering

###
class peft.AutoPeftModelForQuestionAnswering

< source >

( *args **kwargs )

##
AutoPeftModelForFeatureExtraction

###
class peft.AutoPeftModelForFeatureExtraction

< source >

( *args **kwargs )

Update on GitHub