




'''simple docstring'''





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


_SCREAMING_SNAKE_CASE							:     List[str]   	=				logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE							:     Optional[int]   	=				{
    "bert-base-uncased": "https://huggingface.co/bert-base-uncased/resolve/main/config.json",
    # QDQBERT models can be loaded from any BERT checkpoint, available at https://huggingface.co/models?filter=bert
}




class 				_snake_case	(			lowercase_							):
   lowerCAmelCase_  :   Tuple		 =					"qdqbert"




   def __init__(      self       ,							a__=30_522       ,							a__=768       ,							a__=12       ,							a__=12       ,							a__=3_072       ,							a__="gelu"       ,							a__=0.1       ,							a__=0.1       ,							a__=512       ,							a__=2       ,							a__=0.0_2       ,							a__=1e-12       ,							a__=True       ,							a__=1       ,							a__=0       ,							a__=2       ,							**a__       ,							)       ->       int:

          '''simple docstring'''




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

          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_			      =   type_vocab_size
          snake_case_			      =   layer_norm_eps
          snake_case_			      =   use_cache










'''simple docstring'''





import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils




class 				_snake_case	(			unittest.TestCase							):




			@patch("diffusers.utils.hub_utils.get_full_repo_name"							)
			def      lowerCAmelCase__       (      self       ,							a__							)       ->       None:

										'''simple docstring'''




										snake_case_			      =   "full_repo_name"
										with TemporaryDirectory() as tmpdir:
																	# Dummy args values
																	snake_case_			      =   Mock()
																	snake_case_			      =   tmpdir
																	snake_case_			      =   0
																	snake_case_			      =   "hub_token"
																	snake_case_			      =   "dataset_name"
																	snake_case_			      =   0.0_1
																	snake_case_			      =   100_000
																	snake_case_			      =   10_000
																	snake_case_			      =   0.0_1
																	snake_case_			      =   0.0_2
																	snake_case_			      =   0.0_3
																	snake_case_			      =   0.0_0_0_5
																	snake_case_			      =   0.0_0_0_0_0_1
																	snake_case_			      =   1
																	snake_case_			      =   10
																	snake_case_			      =   0.0_0_1
																	snake_case_			      =   0.1
																	snake_case_			      =   0.2
																	snake_case_			      =   True

																	# Model card mush be rendered and saved
																	diffusers.utils.hub_utils.create_model_card(a__       ,							model_name="model_name"							)
																	self.assertTrue((Path(a__							) / "README.md").is_file()							)




