docstr: Initializes a model.
docstr_tok: ["Initializes","a","model","."]
code: def init_model(self) -> None:
      """
      Initializes a model.
      """
      if "model_name_or_path" in self.model_kwargs:
          self.model_kwargs.pop("model_name_or_path")
      if "model_name" in self.model_kwargs:
          self.model_kwargs.pop("model_name")
  
      if "train_objectives" in self.trainer_kwargs:
          self.trainer_kwargs.pop("train_objectives")
      if "train_dataloader" in self.trainer_kwargs:
          self.trainer_kwargs.pop("train_dataloader")
  
      self._trainer = self._trainer_cls(
          self._model, **self.model_kwargs
      )
  
file_path: argilla/src/argilla/client/feedback/training/frameworks/sentence_transformers.py
imports: import logging
  from typing import TYPE_CHECKING, List, Optional, Tuple, Union
  from argilla.client.feedback.training.base import ArgillaTrainerSkeleton
  from argilla.client.feedback.training.schemas.base import TrainingTaskForSentenceSimilarity
  from argilla.training.utils import filter_allowed_args, get_default_args
  from argilla.utils.dependency import require_dependencies
label_desc: Use image node_id 5 for calling the ArgillaSentenceTransformersTrainer obj's underlying member method code with example usage: obj.init_model() without return types