class_docstr: Adds adapters to the T5Attention module.
class_docstr_tok: ["Adds","adapters","to","the","T5Attention","module","."]
code: def init_adapters(self, model_config, adapters_config):
      # Wrap layers for LoRA
      self.q = LoRALinear.wrap(
          self.q,
          "selfattn",
          model_config,
          adapters_config,
          attn_key="q",
          bias=False,
      )
      self.k = LoRALinear.wrap(
          self.k,
          "selfattn",
          model_config,
          adapters_config,
          attn_key="k",
          bias=False,
      )
      self.v = LoRALinear.wrap(
          self.v,
          "selfattn",
          model_config,
          adapters_config,
          attn_key="v",
          bias=False,
      )
  
      self.prefix_tuning = PrefixTuningLayer(
          self.location_key + "_prefix" if self.location_key else None,
          model_config,
          adapters_config,
      )
  
imports: from typing import Iterable, Optional, Tuple
  import torch
  import torch.nn
  from ...methods.bottleneck import BottleneckLayer
  from ...methods.lora import LoRALinear
  from ...methods.prefix_tuning import PrefixTuningLayer
  from ...model_mixin import EmbeddingAdaptersMixin, InvertibleAdaptersMixin, InvertibleAdaptersWrapperMixin, ModelBaseAdaptersMixin, ModelWithHeadsAdaptersMixin
label_desc: Use image node_id 1 for calling the T5AttentionAdaptersMixin obj's underlying member method code with example usage: obj.init_adapters(model_config, adapters_config) without return types