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


lowercase_     :   int 				=				logging.get_logger(__name__)

lowercase_     :   str 				=				{
    'alibaba-damo/mgp-str-base': 'https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json',
}






class 		_lowerCamelCase		(   UpperCamelCase_    ):
    __a  =      "mgp-str"
    def __init__(  self , lowerCAmelCase=[32, 128] , lowerCAmelCase=4 , lowerCAmelCase=3 , lowerCAmelCase=27 , lowerCAmelCase=38 , lowerCAmelCase=50257 , lowerCAmelCase=30522 , lowerCAmelCase=768 , lowerCAmelCase=12 , lowerCAmelCase=12 , lowerCAmelCase=4.0 , lowerCAmelCase=True , lowerCAmelCase=False , lowerCAmelCase=1e-5 , lowerCAmelCase=0.0 , lowerCAmelCase=0.0 , lowerCAmelCase=0.0 , lowerCAmelCase=False , lowerCAmelCase=0.02 , **lowerCAmelCase , )       ->					List[Any]:
     super().__init__(**lowerCAmelCase   )

     SCREAMING_SNAKE_CASE__:   Tuple=      image_size
     SCREAMING_SNAKE_CASE__:   str=      patch_size
     SCREAMING_SNAKE_CASE__:   str=      num_channels
     SCREAMING_SNAKE_CASE__:   Any=      max_token_length
     SCREAMING_SNAKE_CASE__:   List[str]=      num_character_labels
     SCREAMING_SNAKE_CASE__:   str=      num_bpe_labels
     SCREAMING_SNAKE_CASE__:   List[Any]=      num_wordpiece_labels
     SCREAMING_SNAKE_CASE__:   int=      hidden_size
     SCREAMING_SNAKE_CASE__:   Union[str, Any]=      num_hidden_layers
     SCREAMING_SNAKE_CASE__:   Dict=      num_attention_heads
     SCREAMING_SNAKE_CASE__:   Optional[Any]=      mlp_ratio
     SCREAMING_SNAKE_CASE__:   Any=      distilled
     SCREAMING_SNAKE_CASE__:   Optional[Any]=      layer_norm_eps
     SCREAMING_SNAKE_CASE__:   Tuple=      drop_rate
     SCREAMING_SNAKE_CASE__:   Optional[Any]=      qkv_bias
     SCREAMING_SNAKE_CASE__:   List[Any]=      attn_drop_rate
     SCREAMING_SNAKE_CASE__:   Dict=      drop_path_rate
     SCREAMING_SNAKE_CASE__:   Tuple=      output_aa_attentions
     SCREAMING_SNAKE_CASE__:   Union[str, Any]=      initializer_range


# 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.
lowercase_     :   List[str] 				=				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 			A__      (	snake_case_ :		Optional[int]      ):
 from diffusers.utils.testing_utils import pytest_addoption_shared

 pytest_addoption_shared(snake_case_      )







def 			A__      (	snake_case_ :		Optional[int]      ):
 from diffusers.utils.testing_utils import pytest_terminal_summary_main

 SCREAMING_SNAKE_CASE__:   Optional[int]=      terminalreporter.config.getoption('''--make-reports'''      )
 if make_reports:
  pytest_terminal_summary_main(snake_case_       ,				id=snake_case_      )

