
    ^jC
                     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*Donut Swin Transformer model configuration    )strict   )PreTrainedConfig)auto_docstringznaver-clova-ix/donut-base)
checkpointc                       e Zd ZU dZdZdddZdZeee   z  e	eef   z  e
d<   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
d<   dZe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z  e
d<   dZee
d<   dZee
d <   d!Zee
d"<   d#Zee
d$<    fd%Z xZS )&DonutSwinConfiga  
    window_size (`int`, *optional*, defaults to 7):
        Size of windows.

    Example:

    ```python
    >>> from transformers import DonutSwinConfig, DonutSwinModel

    >>> # Initializing a Donut naver-clova-ix/donut-base style configuration
    >>> configuration = DonutSwinConfig()

    >>> # Randomly initializing a model from the naver-clova-ix/donut-base style configuration
    >>> model = DonutSwinModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```z
donut-swin	num_heads
num_layers)num_attention_headsnum_hidden_layers   
image_size   
patch_sizer   num_channels`   	embed_dim)   r      r   .depths)r   r            window_sizeg      @	mlp_ratioTqkv_biasg        hidden_dropout_probattention_probs_dropout_probg?drop_path_rategelu
hidden_actFuse_absolute_embeddingsg{Gz?initializer_rangegh㈵>layer_norm_epsc                     t        | j                        | _        t        | j                  dt        | j                        dz
  z  z        | _        t        |   di | y )Nr       )lenr   r   intr   hidden_sizesuper__post_init__)selfkwargs	__class__s     }/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/donut/configuration_donut_swin.pyr-   zDonutSwinConfig.__post_init__D   sN    dkk* t~~c$++6F6J0KKL''    )__name__
__module____qualname____doc__
model_typeattribute_mapr   r*   listtuple__annotations__r   r   r   r   r
   r   r   floatr   boolr   r   r    r"   strr#   r$   r%   r-   __classcell__)r0   s   @r1   r	   r	      s&   & J  +)M
 58Jd3i%S/1745Jd3i%S/15L#Is*6FDIc3h'6-;ItCy5c?*;KIuHd'**03 %#+3"%NECK%J$)T)#u# NE ( (r2   r	   N)	r6   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r(   r2   r1   <module>rD      sH    1 . 3 # 671(& 1(  81(h 
r2   