Ë
    ÜÓ^j-
  ã                   ój   — d Z ddlmZ ddlmZ ddlmZ  ed¬«      e G d„ d	e«      «       «       Zd	gZy
)zRegNet model configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzfacebook/regnet-y-040)Ú
checkpointc                   óÀ   — e Zd ZU dZdZddgZdZeed<   dZ	eed<   d	Z
ee   eed
f   z  ed<   dZee   eed
f   z  ed<   dZeed<   dZeed<   dZeed<   dZeed<   d„ Zy)ÚRegNetConfigaî  
    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                 óœ   — | j                   | j                  vr4t        d| j                   › ddj                  | j                  «      › �«      ‚y)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    úz/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/regnet/configuration_regnet.pyÚvalidate_architecturez"RegNetConfig.validate_architecture<   sG   € à�?‰? $×"2Ñ"2Ñ2Ü˜{¨4¯?©?Ð*;¸?È3Ï8É8ÐTX×TdÑTdÓKeÐJfÐgÓhÐhð 3ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   r   ÚintÚ__annotations__r   r   ÚlistÚtupler   r   r   Ústrr   r   Úboolr$   © r%   r#   r	   r	      s�   … ñð. €JØ˜�*€Kà€L�#ÓØ€N�CÓØ0E€L�$�s‘)˜e C¨ H™oÑ-ÓEØ*7€FˆD�‰I˜˜c 3˜h™Ñ'Ó7Ø€L�#ÓØ€J�ÓØ€J�ÓØ&*Ð˜tÓ*óir%   r	   N)	r)   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r1   r%   r#   ú<module>r6      sK   ðñ !å .å 3Ý #ñ Ð2Ô3Øô'iÐ#ó 'ió ó 4ð'iðT Ð
�r%   