


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


__UpperCAmelCase    				=     logging.get_logger(__name__)

__UpperCAmelCase    				=     {'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/config.json'}





class A__    ( A ):



 """simple docstring"""







 _lowercase     :					Union[str, Any]      =						'''openai-gpt'''
 _lowercase     :					List[str]      =						{
     '''max_position_embeddings''': '''n_positions''',
     '''hidden_size''': '''n_embd''',
     '''num_attention_heads''': '''n_head''',
     '''num_hidden_layers''': '''n_layer''',
 }

 def __init__(		self :	str     ,						A_ :	List[str]=4_0_4_7_8     ,						A_ :	Union[str, Any]=5_1_2     ,						A_ :	List[str]=7_6_8     ,						A_ :	str=1_2     ,						A_ :	Dict=1_2     ,						A_ :	str="gelu"     ,						A_ :	Dict=0.1     ,						A_ :	Any=0.1     ,						A_ :	Optional[int]=0.1     ,						A_ :	str=1E-5     ,						A_ :	Dict=0.02     ,						A_ :	Any="cls_index"     ,						A_ :	Tuple=True     ,						A_ :	Union[str, Any]=None     ,						A_ :	Union[str, Any]=True     ,						A_ :	Any=0.1     ,						**A_ :	int     ,						):






      '''simple docstring'''




      _lowerCAmelCase   :					Union[str, Any]        =    vocab_size
      _lowerCAmelCase   :					str        =    n_positions
      _lowerCAmelCase   :					str        =    n_embd
      _lowerCAmelCase   :					Dict        =    n_layer
      _lowerCAmelCase   :					Any        =    n_head
      _lowerCAmelCase   :					int        =    afn
      _lowerCAmelCase   :					Dict        =    resid_pdrop
      _lowerCAmelCase   :					Union[str, Any]        =    embd_pdrop
      _lowerCAmelCase   :					int        =    attn_pdrop
      _lowerCAmelCase   :					List[Any]        =    layer_norm_epsilon
      _lowerCAmelCase   :					Union[str, Any]        =    initializer_range
      _lowerCAmelCase   :					Optional[Any]        =    summary_type
      _lowerCAmelCase   :					int        =    summary_use_proj
      _lowerCAmelCase   :					Tuple        =    summary_activation
      _lowerCAmelCase   :					Union[str, Any]        =    summary_first_dropout
      _lowerCAmelCase   :					str        =    summary_proj_to_labels
      super().__init__(**A_       )









import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


__UpperCAmelCase    				=     logging.get_logger(__name__)





class A__    ( A ):



 """simple docstring"""







 def __init__(		self :	Tuple     ,						*A_ :	Optional[int]     ,						**A_ :	int       ):






      '''simple docstring'''




      warnings.warn(
          "The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
          " Please use ChineseCLIPImageProcessor instead."     ,						A_     ,						)
      super().__init__(*A_     ,						**A_       )






