
    Z j-
                     d    S r SSKJr  SSKJr  SSKJr  \" SS9\ " S S	\5      5       5       rS	/rg
)zRegNet model configuration    )strict   )PreTrainedConfig)auto_docstringzfacebook/regnet-y-040)
checkpointc                       \ rS rSr% SrSrSS/rSr\\	S'   Sr
\\	S	'   S
r\\   \\S4   -  \	S'   Sr\\   \\S4   -  \	S'   Sr\\	S'   Sr\\	S'   Sr\\	S'   Sr\\	S'   S rSrg)RegNetConfig   a  
groups_width (`int`, *optional*, defaults to 64):
    Width of group for each stage.
layer_type (`str`, *optional*, defaults to `"y"`):
    The layer to use, it can be either `"x" or `"y"`. An `x` layer is a ResNet's BottleNeck layer with
    `reduction` fixed to `1`. While a `y` layer is a `x` but with squeeze and excitation. Please refer to the
    paper for a detailed explanation of how these layers were constructed.
downsample_in_first_stage (`bool`, *optional*, defaults to `False`):
    If `True`, the first stage will downsample the inputs using a `stride` of 2.

Example:
```python
>>> from transformers import RegNetConfig, RegNetModel

>>> # Initializing a RegNet regnet-y-40 style configuration
>>> configuration = RegNetConfig()
>>> # Initializing a model from the regnet-y-40 style configuration
>>> model = RegNetModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```
regnetxyr   num_channels    embedding_size)      i   i@  .hidden_sizes)         r   depths@   groups_width
layer_typerelu
hidden_actTdownsample_in_first_stagec                     U R                   U R                  ;  a4  [        SU R                    SSR                  U R                  5       35      eg)zOPart of `@strict`-powered validation. Validates the architecture of the config.zlayer_type=z is not one of ,N)r   layer_types
ValueErrorjoin)selfs    ڀ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/regnet/configuration_regnet.pyvalidate_architecture"RegNetConfig.validate_architecture<   sG    ??$"2"22{4??*;?388TXTdTdKeJfghh 3     N)__name__
__module____qualname____firstlineno____doc__
model_typer    r   int__annotations__r   r   listtupler   r   r   strr   r   boolr%   __static_attributes__r(   r'   r$   r	   r	      s    . J*KL#NC0EL$s)eCHo-E*7FDIc3h'7L#JJ&*t*ir'   r	   N)	r-   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r(   r'   r$   <module>r:      sK    ! . 3 # 23'i# 'i  4'iT 
r'   