class_docstr: Adds adapters to the AlbertLayer module.
class_docstr_tok: ["Adds","adapters","to","the","AlbertLayer","module","."]
code: def init_adapters(self, model_config, adapters_config):
      # Wrap layers for LoRA
      self.ffn = LoRALinear.wrap(
          self.ffn, "intermediate", model_config, adapters_config
      )
      self.ffn_output = LoRALinear.wrap(
          self.ffn_output, "output", model_config, adapters_config
      )
  
      # Set location keys for prefix tuning
      self.location_key = "output_adapter"
  
      self.output_adapters = BottleneckLayer("output_adapter")
  
      self.attention.location_key = "self"
  
file_path: adapters/src/adapters/models/albert/mixin_albert.py
imports: from typing import Iterable, Tuple
  import torch.nn
  from ...composition import adjust_tensors_for_parallel_
  from ...methods.bottleneck import BottleneckLayer
  from ...methods.lora import LoRALinear
  from ...methods.prefix_tuning import PrefixTuningLayer
  from ...model_mixin import EmbeddingAdaptersMixin, InvertibleAdaptersMixin, ModelBaseAdaptersMixin
label_desc: Use image node_id 1 for calling the AlbertEncoderLayerAdaptersMixin obj's underlying member method code with example usage: obj.init_adapters(model_config, adapters_config) without return types