Ë
    ÜÓ^jz  ã                   ó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T5 model configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzgoogle-t5/t5-small)Ú
checkpointc                   óv  ‡ — e Zd ZU dZdZdgZdddddœZd	Zee	d
<   dZ
ee	d<   dZee	d<   dZee	d<   dZee	d<   dZed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	d<   dZee	d<   dZee	d<   dZee	d <   dZee	d!<   d"Zedz  e	d#<   d$Zeee   z  dz  e	d%<   d&Zeez  e	d'<   d(Zee	d)<   ˆ fd*„Z d+„ Z!ˆ xZ"S ),ÚT5Configa!  
    relative_attention_num_buckets (`int`, *optional*, defaults to 32):
        The number of buckets to use for each attention layer.
    relative_attention_max_distance (`int`, *optional*, defaults to 128):
        The maximum distance of the longer sequences for the bucket separation.
    feed_forward_proj (`string`, *optional*, defaults to `"relu"`):
        Type of feed forward layer to be used. Should be one of `"relu"` or `"gated-gelu"`. T5v1.1 uses the
        `"gated-gelu"` feed forward projection. Original T5 uses `"relu"`.
    Út5Úpast_key_valuesÚd_modelÚ	num_headsÚ
num_layersÚd_kv)Úhidden_sizeÚnum_attention_headsÚnum_hidden_layersÚhead_dimi€}  Ú
vocab_sizei   é@   i   Úd_ffé   NÚnum_decoder_layersé   é    Úrelative_attention_num_bucketsé€   Úrelative_attention_max_distancegš™™™™™¹?Údropout_rateg�íµ ÷Æ°>Úlayer_norm_epsilong      ð?Úinitializer_factorÚreluÚfeed_forward_projTÚis_encoder_decoderÚ	use_cacher   Úpad_token_idé   Úeos_token_idg        Úclassifier_dropoutFÚ
is_decoderc                 óF  •— | j                   �| j                   n| j                  | _         | j                  j                  d«      }|d   | _        |d   dk(  | _        | j                  dk(  rd| _        |j                  dd «      du| _        d	| _        t        ‰| �(  d
i |¤Ž y )Nú-éÿÿÿÿr   Úgatedz
gated-geluÚgelu_newÚtie_word_embeddingsFT© )r   r   r"   ÚsplitÚdense_act_fnÚis_gated_actÚpopÚscale_decoder_outputsr/   ÚsuperÚ__post_init__)ÚselfÚkwargsÚact_infoÚ	__class__s      €úr/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/t5/configuration_t5.pyr7   zT5Config.__post_init__@   s©   ø€ à'+×'>Ñ'>Ð'JˆD×#Ò#ÐPT×P_ÑP_ð 	Ôð ×)Ñ)×/Ñ/°Ó4ˆØ$ R™LˆÔØ$ Q™K¨7Ñ2ˆÔð ×!Ñ! \Ò1Ø *ˆDÔð &,§Z¡ZÐ0EÀtÓ%LÐTYÐ%YˆÔ"Ø#'ˆÔ ä‰ÑÑ' Ó'ó    c                 ó´   — | j                   j                  d«      }t        |«      dkD  r|d   dk7  st        |«      dkD  rt        d| j                   › d�«      ‚y)	zOPart of `@strict`-powered validation. Validates the architecture of the config.r+   r&   r   r-   é   z`feed_forward_proj`: z© is not a valid activation function of the dense layer. Please make sure `feed_forward_proj` is of the format `gated-{ACT_FN}` or `{ACT_FN}`, e.g. 'gated-gelu' or 'relu'N)r"   r1   ÚlenÚ
ValueError)r8   r:   s     r<   Úvalidate_architecturezT5Config.validate_architectureW   sf   € à×)Ñ)×/Ñ/°Ó4ˆÜˆx‹=˜1Ò ¨!¡°Ò!7¼3¸x»=È1Ò;LÜØ'¨×(>Ñ(>Ð'?ð @)ð )óð ð <Mr=   )#Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typeÚkeys_to_ignore_at_inferenceÚattribute_mapr   ÚintÚ__annotations__r   r   r   r   r   r   r   r   r   Úfloatr   r    r"   Ústrr#   Úboolr$   r%   r'   Úlistr(   r)   r7   rB   Ú__classcell__)r;   s   @r<   r	   r	      s  ø… ñð €JØ#4Ð"5Ðà Ø*Ø)Øñ	€Mð €J�ÓØ€GˆSÓØ€Dˆ#ƒNØ€Dˆ#ÓØ€J�ÓØ%)Ð˜˜d™
Ó)Ø€IˆsÓØ*,Ð" CÓ,Ø+.Ð# SÓ.Ø #€L�%˜#‘+Ó#Ø $Ð˜Ó$Ø #Ð˜Ó#Ø#Ð�sÓ#Ø#Ð˜Ó#Ø€IˆtÓØ €L�#˜‘*Ó Ø+,€L�#˜˜S™	‘/ DÑ(Ó,Ø&)Ð˜ ™Ó)Ø€J�Óô(ö.r=   r	   N)	rF   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r0   r=   r<   ú<module>rU      sJ   ðñ å .å 3Ý #ñ Ð/Ô0ØôGÐó Gó ó 1ðGðT ˆ,�r=   