class_docstr: Adapted from https://github.com/huggingface/peft/blob/main/src/peft/tuners/adalora.py.
class_docstr_tok: ["Adapted","from","https",":","\/\/github.com\/huggingface\/peft\/blob\/main\/src\/peft\/tuners\/adalora.py","."]
code: def to_config(self, **kwargs) -> "PeftConfig":
      from peft import AdaLoraConfig as _AdaLoraConfig
  
      return _AdaLoraConfig(
          r=self.r,
          lora_alpha=self.alpha,
          lora_dropout=self.dropout,
          bias=self.bias_type,
          target_r=self.target_r,
          init_r=self.init_r,
          tinit=self.tinit,
          tfinal=self.tfinal,
          deltaT=self.delta_t,
          beta1=self.beta1,
          beta2=self.beta2,
          orth_reg_weight=self.orth_reg_weight,
          total_step=self.total_step,
          rank_pattern=self.rank_pattern,
      )
  
imports: from abc import ABC, abstractmethod
  from typing import List, Optional, Type, TYPE_CHECKING
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.error import ConfigValidationError
  from ludwig.schema import utils
  from ludwig.schema.metadata import LLM_METADATA
  from ludwig.schema.metadata.parameter_metadata import convert_metadata_to_json
  from ludwig.schema.utils import ludwig_dataclass
  from ludwig.utils.registry import Registry
label_desc: Use image node_id 1 for calling the AdaloraConfig obj's underlying member method code with example usage: obj.to_config() and returns: _AdaLoraConfig