docstr: Performs any necessary setup after swapping class.
  Must use self.set_accepted_adapter_types([<NeMo adapter config>_target_]) to register adapter.
docstr_tok: ["Performs","any","necessary","setup","after","swapping","class",".","Must","use","self.set_accepted_adapter_types","(","[","<","NeMo","adapter","config",">","_target_","]",")","to","register","adapter","."]
code: def mcore_register_adapters(self):
      """
      Performs any necessary setup after swapping class.
      Must use self.set_accepted_adapter_types([<NeMo adapter config>_target_]) to register adapter.
      """
      raise NotImplementedError(
          "Mcore mixins should implement setup_adapters on a subclass of MyBase"
      )
  
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 MCoreAdapterModuleMixin obj's underlying member method code with example usage: obj.mcore_register_adapters() without return types