



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


_lowerCamelCase						    =  logging.get_logger(__name__)

_lowerCamelCase						    =  {"""ctrl""": """https://huggingface.co/ctrl/resolve/main/config.json"""}

class       _SCREAMING_SNAKE_CASE	(UpperCamelCase ):
     lowerCAmelCase					=			"""ctrl"""
     lowerCAmelCase					=			["""past_key_values"""]
     lowerCAmelCase					=			{
         """max_position_embeddings""": """n_positions""",
         """hidden_size""": """n_embd""",
         """num_attention_heads""": """n_head""",
         """num_hidden_layers""": """n_layer""",
     }





     def __init__(       self :							int     ,  UpperCamelCase :							Dict=2_4_6_5_3_4     ,  UpperCamelCase :							str=2_5_6     ,  UpperCamelCase :							Dict=1_2_8_0     ,  UpperCamelCase :							List[Any]=8_1_9_2     ,  UpperCamelCase :							int=4_8     ,  UpperCamelCase :							Union[str, Any]=1_6     ,  UpperCamelCase :							int=0.1     ,  UpperCamelCase :							Optional[Any]=0.1     ,  UpperCamelCase :							str=1E-6     ,  UpperCamelCase :							Optional[int]=0.0_2     ,  UpperCamelCase :							List[Any]=True     ,  **UpperCamelCase :							str     ,  )->str:
      __SCREAMING_SNAKE_CASE       :    Tuple       =	vocab_size
      __SCREAMING_SNAKE_CASE       :    str       =	n_positions
      __SCREAMING_SNAKE_CASE       :    List[str]       =	n_embd
      __SCREAMING_SNAKE_CASE       :    int       =	n_layer
      __SCREAMING_SNAKE_CASE       :    Any       =	n_head
      __SCREAMING_SNAKE_CASE       :    int       =	dff
      __SCREAMING_SNAKE_CASE       :    Dict       =	resid_pdrop
      __SCREAMING_SNAKE_CASE       :    Union[str, Any]       =	embd_pdrop
      __SCREAMING_SNAKE_CASE       :    Optional[int]       =	layer_norm_epsilon
      __SCREAMING_SNAKE_CASE       :    List[str]       =	initializer_range

      __SCREAMING_SNAKE_CASE       :    Union[str, Any]       =	use_cache

      super().__init__(**UpperCamelCase				)











import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


_lowerCamelCase						    =  logging.get_logger(__name__)

class       _SCREAMING_SNAKE_CASE	(UpperCamelCase ):





     def __init__(       self :							int     ,  *UpperCamelCase :							Optional[int]     ,  **UpperCamelCase :							Optional[int]				)->None:
      warnings.warn(
          "The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
          " Please use LayoutLMv2ImageProcessor instead."     ,  UpperCamelCase     ,  )
      super().__init__(*UpperCamelCase     ,  **UpperCamelCase				)






