
'''simple docstring'''






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


UpperCAmelCase_       :   List[Any]   =       {
    'configuration_biogpt': ['BIOGPT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'BioGptConfig'],
    'tokenization_biogpt': ['BioGptTokenizer'],
}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 UpperCAmelCase_       :   Any   =       [
     'BIOGPT_PRETRAINED_MODEL_ARCHIVE_LIST',
     'BioGptForCausalLM',
     'BioGptForTokenClassification',
     'BioGptForSequenceClassification',
     'BioGptModel',
     'BioGptPreTrainedModel',
 ]


if TYPE_CHECKING:
 from .configuration_biogpt import BIOGPT_PRETRAINED_CONFIG_ARCHIVE_MAP, BioGptConfig
 from .tokenization_biogpt import BioGptTokenizer

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_biogpt import (
      BIOGPT_PRETRAINED_MODEL_ARCHIVE_LIST,
      BioGptForCausalLM,
      BioGptForSequenceClassification,
      BioGptForTokenClassification,
      BioGptModel,
      BioGptPreTrainedModel,
  )


else:
 import sys

 UpperCAmelCase_       :   str   =       _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)

'''simple docstring'''






import warnings

from ..trainer import Trainer
from ..utils import logging


UpperCAmelCase_       :   Union[str, Any]   =       logging.get_logger(__name__)

class  UpperCAmelCase__						(       A ):



    def __init__(	self      :       int,__A      :       Any=None,**__A      :       Optional[Any]     ):
          warnings.warn(
              "`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` "
              "instead.",__A,)
          super().__init__(args=__A,**__A     )