code: def init_model(self, new: bool = False):
      from transformers import AutoTokenizer
  
      if self.trainer_tokenizer is None:
          if any(
              k
              in self.model_kwargs.get("pretrained_model_name_or_path")
              for k in ("gpt", "opt", "bloom")
          ):
              padding_side = "left"
          else:
              padding_side = "right"
  
          self.trainer_tokenizer = AutoTokenizer.from_pretrained(
              self.model_kwargs.get("pretrained_model_name_or_path"),
              padding_side=padding_side,
              add_prefix_space=True,
          )
          if getattr(self.trainer_tokenizer, "pad_token_id") is None:
              self.trainer_tokenizer.pad_token_id = (
                  self.trainer_tokenizer.eos_token_id
              )
          if (
              getattr(self.trainer_tokenizer, "model_max_length")
              is None
          ):
              self.trainer_tokenizer.model_max_length = 512
  
      if new:
          model_kwargs = self.model_kwargs
      else:
          model_kwargs = {
              "pretrained_model_name_or_path": self.model_kwargs.get(
                  "pretrained_model_name_or_path"
              )
          }
  
      if self.trainer_model is None:
          self.trainer_model = self._model_class.from_pretrained(
              **model_kwargs, return_dict=True
          )
      if new:
          self.trainer_model = self.trainer_model.to(self.device)
  
file_path: argilla/src/argilla/training/transformers.py
imports: import logging
  from typing import List, Union
  from datasets import DatasetDict
  from argilla.client.models import TextClassificationRecord, TokenClassificationRecord
  from argilla.training.base import ArgillaTrainerSkeleton
  from argilla.training.utils import _apply_column_mapping, filter_allowed_args, get_default_args
  from argilla.utils.dependency import require_dependencies
label_desc: Use image node_id 3 for calling the ArgillaTransformersTrainer obj's underlying member method code with example usage: obj.init_model(new) without return types