Ë
    ÜÓ^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Pvt model configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzXrenya/pvt-tiny-224)Ú
checkpointc                   óÚ  — e Zd ZU dZdZdZeee   z  eeef   z  e	d<   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   eed
f   z  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   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z  e	d<   dZeez  e	d<   dZee	d<   dZeez  e	d<   dZee	d <   d!Zee	d"<   d#Zee	d$<   y%)&Ú	PvtConfiga×  
    num_encoder_blocks (`int`, *optional*, defaults to 4):
        The number of encoder blocks (i.e. stages in the Mix Transformer encoder).
    depths (`list[int]`, *optional*, defaults to `[2, 2, 2, 2]`):
        The number of layers in each encoder block.
    sequence_reduction_ratios (`list[int]`, *optional*, defaults to `[8, 4, 2, 1]`):
        Sequence reduction ratios in each encoder block.
    patch_sizes (`list[int]`, *optional*, defaults to `[4, 2, 2, 2]`):
        Patch size before each encoder block.
    strides (`list[int]`, *optional*, defaults to `[4, 2, 2, 2]`):
        Stride before each encoder block.
    num_attention_heads (`list[int]`, *optional*, defaults to `[1, 2, 5, 8]`):
        Number of attention heads for each attention layer in each block of the Transformer encoder.
    mlp_ratios (`list[int]`, *optional*, defaults to `[8, 8, 4, 4]`):
        Ratio of the size of the hidden layer compared to the size of the input layer of the Mix FFNs in the
        encoder blocks.
    num_labels ('int', *optional*, defaults to 1000):
        The number of classes.

    Example:

    ```python
    >>> from transformers import PvtModel, PvtConfig

    >>> # Initializing a PVT Xrenya/pvt-tiny-224 style configuration
    >>> configuration = PvtConfig()

    >>> # Initializing a model from the Xrenya/pvt-tiny-224 style configuration
    >>> model = PvtModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```Úpvtéà   Ú
image_sizer   Únum_channelsé   Únum_encoder_blocks)é   r   r   r   .Údepths)é   r   r   é   Úsequence_reduction_ratios)é@   é€   i@  i   Úhidden_sizes)r   r   r   r   Úpatch_sizesÚstrides)r   r   é   r   Únum_attention_heads)r   r   r   r   Ú
mlp_ratiosÚgeluÚ
hidden_actg        Úhidden_dropout_probÚattention_probs_dropout_probg{®Gáz”?Úinitializer_rangeÚdrop_path_rateg�íµ ÷Æ°>Úlayer_norm_epsTÚqkv_biasiè  Ú
num_labelsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   ÚintÚlistÚtupleÚ__annotations__r   r   r   r   r   r   r   r   r   r   Ústrr   Úfloatr    r!   r"   r#   r$   Úboolr%   © ó    út/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/pvt/configuration_pvt.pyr	   r	      sa  … ñ ðD €Jà47€J��d˜3‘i‘ %¨¨S¨¡/Ñ1Ó7Ø€L�#ÓØÐ˜ÓØ*6€FˆD�‰I˜˜c 3˜h™Ñ'Ó6Ø=IÐ˜t C™y¨5°°c°©?Ñ:ÓIØ0C€L�$�s‘)˜e C¨ H™oÑ-ÓCØ/;€K��c‘˜U 3¨ 8™_Ñ,Ó;Ø+7€GˆT�#‰Y˜˜s C˜x™Ñ(Ó7Ø7CÐ˜˜c™ U¨3°¨8¡_Ñ4ÓCØ.:€J��S‘	˜E # s (™OÑ+Ó:Ø€J�ÓØ'*Ð˜ ™Ó*Ø03Ð  %¨#¡+Ó3Ø#Ð�uÓ#Ø"%€N�E˜C‘KÓ%Ø €N�EÓ Ø€HˆdÓØ€J�Ôr3   r	   N)	r)   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r2   r3   r4   ú<module>r9      sG   ðñ  å .å 3Ý #ñ Ð0Ô1Øô6Ð ó 6ó ó 2ð6ðr ˆ-�r3   