
# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__magic_name__  							=	abspath(join(dirname(dirname(__file__)), '''src'''))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)





def 						SCREAMING_SNAKE_CASE__     (   __lowerCAmelCase				):
    from diffusers.utils.testing_utils import pytest_addoption_shared

    pytest_addoption_shared(__lowerCAmelCase				)





def 						SCREAMING_SNAKE_CASE__     (   __lowerCAmelCase				):
    from diffusers.utils.testing_utils import pytest_terminal_summary_main

    snake_case__    =					terminalreporter.config.getoption("--make-reports"				)
    if make_reports:
        pytest_terminal_summary_main(__lowerCAmelCase     ,		id=__lowerCAmelCase				)





from ...configuration_utils import PretrainedConfig
from ...utils import logging


__magic_name__  							=	logging.get_logger(__name__)

__magic_name__  							=	{
    '''microsoft/biogpt''': '''https://huggingface.co/microsoft/biogpt/resolve/main/config.json''',
    # See all BioGPT models at https://huggingface.co/models?filter=biogpt
}




class        _SCREAMING_SNAKE_CASE	(   __UpperCamelCase			):
      _A    :		Dict     						=  'biogpt'
      def __init__(      self		,						lowerCamelCase=4_23_84		,						lowerCamelCase=10_24		,						lowerCamelCase=24		,						lowerCamelCase=16		,						lowerCamelCase=40_96		,						lowerCamelCase="gelu"		,						lowerCamelCase=0.1		,						lowerCamelCase=0.1		,						lowerCamelCase=10_24		,						lowerCamelCase=0.0_2		,						lowerCamelCase=1e-12		,						lowerCamelCase=True		,						lowerCamelCase=True		,						lowerCamelCase=0.0		,						lowerCamelCase=0.0		,						lowerCamelCase=1		,						lowerCamelCase=0		,						lowerCamelCase=2		,						**lowerCamelCase		,						):
          snake_case__    =					vocab_size
          snake_case__    =					max_position_embeddings
          snake_case__    =					hidden_size
          snake_case__    =					num_hidden_layers
          snake_case__    =					num_attention_heads
          snake_case__    =					intermediate_size
          snake_case__    =					hidden_act
          snake_case__    =					hidden_dropout_prob
          snake_case__    =					attention_probs_dropout_prob
          snake_case__    =					initializer_range
          snake_case__    =					layer_norm_eps
          snake_case__    =					scale_embedding
          snake_case__    =					use_cache
          snake_case__    =					layerdrop
          snake_case__    =					activation_dropout
          super().__init__(pad_token_id=lowerCamelCase		,						bos_token_id=lowerCamelCase		,						eos_token_id=lowerCamelCase		,						**lowerCamelCase			)



