class_docstr: Adds adapters to the BertModel module.
class_docstr_tok: ["Adds","adapters","to","the","BertModel","module","."]
code: def forward(self, *args, **kwargs):
      if "lang_ids" in kwargs and kwargs["lang_ids"] is not None:
          raise ValueError(
              "XmodModel with adapters does not support `lang_ids` as an argument. Use `set_active_adapters`"
              " instead."
          )
      else:
          kwargs["lang_ids"] = 1
      return super().forward(*args, **kwargs)
  
file_path: adapters/src/adapters/models/xmod/mixin_xmod.py
imports: from typing import Iterable, Tuple
  import torch.nn
  from transformers.utils import logging
  from ...composition import adjust_tensors_for_parallel_
  from ...model_mixin import EmbeddingAdaptersMixin, InvertibleAdaptersMixin, ModelBaseAdaptersMixin
label_desc: Use image node_id 4 for calling the XmodModelAdaptersMixin obj's underlying member method code with example usage: obj.forward() and returns: super