docstr: Setup NeMo LoRA or IA3 adapter to this MCore layer.
docstr_tok: ["Setup","NeMo","LoRA","or","IA3","adapter","to","this","MCore","layer","."]
code: def mcore_register_adapters(self):
      """
      Setup NeMo LoRA or IA3 adapter to this MCore layer.
      """
      self.set_accepted_adapter_types(
          [LoraKQVAdapterConfig._target_, InfusedAdapterConfig._target_]
      )
      self.linear_qkv.return_layernorm_output = True
  
imports: import torch
  import torch.nn.functional
  from megatron.core.fusions.fused_bias_dropout import get_bias_dropout_add
  from megatron.core.fusions.fused_bias_gelu import bias_gelu_impl
  from megatron.core.models.common.embeddings.language_model_embedding import LanguageModelEmbedding
  from megatron.core.transformer.attention import SelfAttention
  from megatron.core.transformer.custom_layers.transformer_engine import TEColumnParallelLinear, TELayerNormColumnParallelLinear
  from megatron.core.transformer.mlp import MLP
  from megatron.core.transformer.transformer_layer import TransformerLayer
  from megatron.core.utils import make_viewless_tensor
  from nemo.collections.nlp.modules.common.megatron.adapters.parallel_adapters import AdapterName, InfusedAdapterConfig, LoraKQVAdapterConfig, MLPInfusedAdapterConfig, ParallelLinearAdapterConfig, PromptEncoderAdapterConfig
  from nemo.core import adapter_mixins
label_desc: Use image node_id 1 for calling the MCoreSelfAttentionMixin obj's underlying member method code with example usage: obj.mcore_register_adapters() without return types