



import os
import sys

a_						:     Optional[int]	     =		os.path.join(os.path.dirname(__file__), 'src')
sys.path.append(SRC_DIR)


from transformers import (
    AutoConfig,
    AutoModel,
    AutoModelForCausalLM,
    AutoModelForMaskedLM,
    AutoModelForQuestionAnswering,
    AutoModelForSequenceClassification,
    AutoTokenizer,
    add_start_docstrings,
)


a_						:     Any	     =		[
    'torch',
    'numpy',
    'tokenizers',
    'filelock',
    'requests',
    'tqdm',
    'regex',
    'sentencepiece',
    'sacremoses',
    'importlib_metadata',
    'huggingface_hub',
]

@add_start_docstrings(AutoConfig.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoConfig.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )

@add_start_docstrings(AutoTokenizer.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoTokenizer.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )

@add_start_docstrings(AutoModel.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoModel.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )

@add_start_docstrings(AutoModelForCausalLM.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoModelForCausalLM.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )

@add_start_docstrings(AutoModelForMaskedLM.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoModelForMaskedLM.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )

@add_start_docstrings(AutoModelForSequenceClassification.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoModelForSequenceClassification.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )






@add_start_docstrings(AutoModelForQuestionAnswering.__doc__ )
def     __lowercase(	*UpperCAmelCase__   ,   **UpperCAmelCase__ ):


      """simple docstring"""



      return AutoModelForQuestionAnswering.from_pretrained(*UpperCAmelCase__   ,   **UpperCAmelCase__ )




a_						:     List[str]	     =		'\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n'

a_						:     Any	     =		[{'type': 'code', 'content': INSTALL_CONTENT}]
a_						:     str	     =		{
    '{processor_class}': 'FakeProcessorClass',
    '{model_class}': 'FakeModelClass',
    '{object_class}': 'FakeObjectClass',
}