
"""simple docstring"""




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


lowerCAmelCase__				=					logging.get_logger(__name__)

lowerCAmelCase__				=					{
    'uw-madison/mra-base-512-4': 'https://huggingface.co/uw-madison/mra-base-512-4/resolve/main/config.json',
}





class 			snake_case  (				_a ):
							UpperCAmelCase__      =   """mra"""

							def __init__(self							,							SCREAMING_SNAKE_CASE_=5_02_65							,							SCREAMING_SNAKE_CASE_=7_68							,							SCREAMING_SNAKE_CASE_=12							,							SCREAMING_SNAKE_CASE_=12							,							SCREAMING_SNAKE_CASE_=30_72							,							SCREAMING_SNAKE_CASE_="gelu"							,							SCREAMING_SNAKE_CASE_=0.1							,							SCREAMING_SNAKE_CASE_=0.1							,							SCREAMING_SNAKE_CASE_=5_12							,							SCREAMING_SNAKE_CASE_=1							,							SCREAMING_SNAKE_CASE_=0.02							,							SCREAMING_SNAKE_CASE_=1e-5							,							SCREAMING_SNAKE_CASE_="absolute"							,							SCREAMING_SNAKE_CASE_=4							,							SCREAMING_SNAKE_CASE_="full"							,							SCREAMING_SNAKE_CASE_=0							,							SCREAMING_SNAKE_CASE_=0							,							SCREAMING_SNAKE_CASE_=1							,							SCREAMING_SNAKE_CASE_=0							,							SCREAMING_SNAKE_CASE_=2							,							**SCREAMING_SNAKE_CASE_							,							):

									"""simple docstring"""







									super().__init__(pad_token_id=SCREAMING_SNAKE_CASE_							,							bos_token_id=SCREAMING_SNAKE_CASE_							,							eos_token_id=SCREAMING_SNAKE_CASE_							,							**SCREAMING_SNAKE_CASE_     )

									SCREAMING_SNAKE_CASE_    			=			vocab_size
									SCREAMING_SNAKE_CASE_    			=			max_position_embeddings
									SCREAMING_SNAKE_CASE_    			=			hidden_size
									SCREAMING_SNAKE_CASE_    			=			num_hidden_layers
									SCREAMING_SNAKE_CASE_    			=			num_attention_heads
									SCREAMING_SNAKE_CASE_    			=			intermediate_size
									SCREAMING_SNAKE_CASE_    			=			hidden_act
									SCREAMING_SNAKE_CASE_    			=			hidden_dropout_prob
									SCREAMING_SNAKE_CASE_    			=			attention_probs_dropout_prob
									SCREAMING_SNAKE_CASE_    			=			initializer_range
									SCREAMING_SNAKE_CASE_    			=			type_vocab_size
									SCREAMING_SNAKE_CASE_    			=			layer_norm_eps
									SCREAMING_SNAKE_CASE_    			=			position_embedding_type
									SCREAMING_SNAKE_CASE_    			=			block_per_row
									SCREAMING_SNAKE_CASE_    			=			approx_mode
									SCREAMING_SNAKE_CASE_    			=			initial_prior_first_n_blocks
									SCREAMING_SNAKE_CASE_    			=			initial_prior_diagonal_n_blocks



import inspect
import unittest






class      UpperCamelCase(	unittest.TestCase ):


					def 				SCREAMING_SNAKE_CASE_	(    self						:		Dict    )      ->						List[Any]:




											'''simple docstring'''

											try:
																	import diffusers  # noqa: F401
											except ImportError:
																	assert False






					def 				SCREAMING_SNAKE_CASE_	(    self						:		Optional[int]    )      ->						Any:




											'''simple docstring'''

											import diffusers
											from diffusers.dependency_versions_table import deps

											__snake_case				=		inspect.getmembers(SCREAMING_SNAKE_CASE  ,     inspect.isclass    )

											for cls_name, cls_module in all_classes:
																	if "dummy_" in cls_module.__module__:
																							for backend in cls_module._backends:
																													if backend == "k_diffusion":
																																			__snake_case				=		"k-diffusion"
																													elif backend == "invisible_watermark":
																																			__snake_case				=		"invisible-watermark"
																													assert backend in deps, f'''{backend} is not in the deps table!'''





