+
    œ°³jH)  ã                   ó  € R t ^ RIt^ RIHt ^RIHt ^RIHtHt ]P                  ! ]
4      t]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R	 R
]4      4       4       t]! RR7      ] ! R R]4      4       4       t. ROtR# )zCLVP model configurationN)Ústrict)ÚPreTrainedConfig)Úauto_docstringÚloggingzsusnato/clvp_dev)Ú
checkpointc                   ó    a € ] tR t^t o RtRtRR.tRtRtRt	Rt
^t^tRtR	tR
tR
tRtRtRtRt^ÿt^ tRt]RV 3R lR ll4       tV 3R ltRtV tR# )ÚClvpEncoderConfigar  
use_rotary_embedding (`bool`, *optional*, defaults to `True`):
    Whether to use rotary_embedding or not.
use_attention_bias (`bool`, *optional*, defaults to `False`):
    Whether to use bias in Query, Key and Value layers during self attention.
summary_type (`str`, *optional*, defaults to `"mean"`):
    What strategy to use to get pooler_output from the last_hidden_state. `"last"`, `"first"`, `"mean"` and
    `"cls_index"` are supported.

Example:

```python
>>> from transformers import ClvpEncoderConfig, ClvpEncoder

>>> # Initializing a ClvpEncoderConfig with susnato/clvp_dev style configuration
>>> encoder_configuration = ClvpEncoderConfig()

>>> # Initializing a ClvpEncoder (with random weights) from the susnato/clvp_dev style configuration
>>> model = ClvpEncoder(encoder_configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úclvp_encoderÚtext_configÚspeech_configé   é   i   Úgeluçñhãˆµøä>çš™™™™™¹?TFÚmeanç      ð?Nc                óJ   <€ V ^8„  d   QhRS[ S[P                  ,          RS[ /# )é   Úpretrained_model_name_or_pathÚconfig_type)ÚstrÚosÚPathLike)ÚformatÚ__classdict__s   "€Úl/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/clvp/configuration_clvp.pyÚ__annotate__ÚClvpEncoderConfig.__annotate__L   s&   ø€ ÷ 4ñ 4Ù,/±"·+±+Õ,=ð4ÙLOñ4ó    c                ó†  € V P                   ! V3/ VB w  rCW P                  9  d   \        R V 24      hVP                  R4      R8X  d	   WB,          pRV9   dX   \	        V R4      '       dF   VR,          V P
                  8w  d.   \        P                  RVR,           RV P
                   R24       V P                  ! V3/ VB # )zSWe can only load either 'text_config' or 'speech_config' but you are trying to loadÚ
model_typeÚclvpzYou are using a model of type z  to instantiate a model of type zN. This is not supported for all configurations of models and can yield errors.)	Úget_config_dictÚbase_config_keyÚ
ValueErrorÚgetÚhasattrr!   ÚloggerÚwarningÚ	from_dict)Úclsr   r   ÚkwargsÚconfig_dicts   &&&, r   Úfrom_pretrainedÚ!ClvpEncoderConfig.from_pretrainedK   sÍ   € ð "×1Ò1Ð2OÑZÐSYÑZÑˆð ×1Ñ1Ô1ÜØeÐfqÐerÐsóð ð
 �?‰?˜<Ó(¨FÔ2Ø%Õ2ˆKà˜;Ô&¬7°3¸×+EÒ+EÈ+ÐVbÕJcÐgj×guÑguÔJuÜ�N‰NØ0°¸\Õ1JÐ0KÐKkØ—>‘>Ð"Ð"pðrôð
 �}Š}˜[Ñ3¨FÑ3Ð3r   c                óP  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[;R&   S[S[ ,          ;R	&   S[S[ ,          ;R
&   S[;R&   S[;R&   S[;R&   S[;R&   S[ R,          ;R&   S[ S[S[ ,          ,          R,          ;R&   S[ R,          ;R&   # )r   Ú
vocab_sizeÚhidden_sizeÚintermediate_sizeÚprojection_dimÚnum_hidden_layersÚnum_attention_headsÚ
hidden_actÚlayer_norm_epsÚattention_dropoutÚdropoutÚuse_rotary_embeddingÚuse_attention_biasÚsummary_typeÚinitializer_factorNÚbos_token_idÚeos_token_idÚpad_token_id)Úintr   ÚfloatÚboolÚlist)r   r   s   "€r   r   r      s  ø‡ ‚ ñ< Ññ= ñ> Ññ? ñ@ Ñ!ñA ñB ÑñC ñD ÑñE ñF Ñ!ñG ñH ÑñI ñJ Ñ ñK ñL ™s•{Ñ(ñM ñN ‘S�[ÑñO ñP Ñ%ñQ ñR Ñ$ñS ñT ÑñU ñV Ñ#ñW ñX ˜•*Ñ"ñY ñZ ™™S�	•/ DÕ(Ñ,ñ[ ñ\ ˜•*Ñ#ò] r   © )r
   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r!   r$   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   Úclassmethodr.   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s–   ø‡ € ñð0  €JØ$ oÐ6€Oà€JØ€KØ!ÐØ€NØÐØ!ÐØ€JØ €NØ%(ÐØ€GØ!%ÐØ$ÐØ€LØ #ÐØ"€LØ+,€LØ#€Là÷4ñ 4ó ð4÷c ƒ r   r   c                   ó¨   a € ] tR t^et o RtRtRtRtRtRt	Rt
^t^tRt^tR	tR
tR
tR
tRtRtRtRtRtRtR
tRtRtRtRt^PtRtRt Rt!Rt"V 3R lt#Rt$V t%R# )ÚClvpDecoderConfiga‰	  
max_text_tokens (`int`, *optional*, defaults to 404):
    The maximum sequence length of text tokens that this model might ever be used with. Similar to
    `n_positions` in `GPT2Config`.
n_inner (`int`, *optional*):
    Dimensionality of the inner feed-forward layers. `None` will set it to 4 times `hidden_size`.
num_mel_attn_blocks (`int`, *optional*, defaults to 6):
    Denotes the number of self attention layers in [`ClvpConditioningEncoder`].
summary_type (`string`, *optional*, defaults to `"cls_index"`):
    Argument used when doing sequence summary.
    Has to be one of the following options:
        - `"last"`: Take the last token hidden state (like XLNet).
        - `"first"`: Take the first token hidden state (like BERT).
        - `"mean"`: Take the mean of all tokens hidden states.
        - `"cls_index"`: Supply a Tensor of classification token position (like GPT/GPT-2).
        - `"attn"`: Not implemented now, use multi-head attention.
summary_use_proj (`bool`, *optional*, defaults to `True`):
    Whether or not to add a projection after the vector extraction.
summary_activation (`str`, *optional*):
    Pass `"tanh"` for a tanh activation to the output, any other value will result in no activation.
summary_proj_to_labels (`bool`, *optional*, defaults to `True`):
    Whether the projection outputs should have `config.num_labels` or `config.hidden_size` classes.
summary_first_dropout (`float`, *optional*, defaults to 0.1):
    The dropout ratio to be used after the projection and activation.
feature_size (`int`, *optional*, defaults to 80):
    The feature dimension of the extracted mel features. This value is used in [`ClvpConditioningEncoder`].
use_attention_bias (`bool`, *optional*, defaults to `True`):
    Whether to use bias in Query, Key and Value layers during self attention.
decoder_fixing_codes (`list`, *optional*, defaults to `[83, 45, 45, 248]`):
    These values are used in the method `fix_speech_decoder_output` to fix decoder generated outputs.

Example:

```python
>>> from transformers import ClvpDecoderConfig, ClvpDecoder

>>> # Initializing a ClvpDecoderConfig with susnato/clvp_dev style configuration
>>> decoder_configuration = ClvpDecoderConfig()

>>> # Initializing a ClvpDecoder (with random weights) from the susnato/clvp_dev style configuration
>>> model = ClvpDecoder(decoder_configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úclvp_decoderÚdecoder_configi   i`  i”  i   NÚgelu_newr   r   g{®Gáz”?Ú	cls_indexTi    i   r   Fc                óD  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ R,          ;R&   S[ ;R	&   S[;R
&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[R,          ;R&   S[;R&   S[S[ ,          ;R&   S[;R&   S[ R,          ;R&   S[ S[S[ ,          ,          R,          ;R&   S[ R,          ;R&   S[ ;R&   S[;R&   S[;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[;R&   # )r   r1   Úmax_position_embeddingsÚmax_text_tokensr2   r5   r6   NÚn_innerÚnum_mel_attn_blocksÚactivation_functionÚresid_pdropÚ
embd_pdropr9   Úlayer_norm_epsilonÚinitializer_ranger=   Úsummary_use_projÚsummary_activationÚsummary_proj_to_labelsÚsummary_first_dropoutÚ	use_cacher?   r@   rA   Úfeature_sizer<   r>   .Údecoder_fixing_codesÚadd_cross_attention)rB   r   rC   rD   rE   Útuple)r   r   s   "€r   r   ÚClvpDecoderConfig.__annotate__e   sç  ø‡ ‚ ñh Ññi ñj !Ñ&ñk ñl Ññm ñn Ñño ñp Ññq ñr Ñ!ñs ñt �4�ZÑñu ñv Ñ ñw ñx Ñ)ñy ñz ™•Ñ"ñ{ ñ| ™•Ñ!ñ} ñ~ ™s•{Ñ(ñ ñ@ Ñ$ñA ñB Ñ#ñC ñD Ñ#ñE ñF Ñ!ñG ñH ˜d�
Ñ)ñI ñJ !Ñ'ñK ñL !¡3�;Ñ,ñM ñN ÑñO ñP ˜•*Ñ#ñQ ñR ™™S�	•/ DÕ(Ñ/ñS ñT ˜•*Ñ#ñU ñV ÑñW ñX Ñ#ñY ñZ Ñ#ñ[ ñ\ ™s�)¡e©C°¨H¥oÕ5ÑIñ] ñ^ Ñ%ò_ r   rF   )éS   é-   rl   éø   )&rG   rH   rI   rJ   rK   r!   r$   r1   rX   rY   r2   r5   r6   rZ   r[   r\   r]   r^   r9   r_   r`   r=   ra   rb   rc   rd   re   r?   r@   rA   rf   r<   r>   rg   rh   rM   rN   rO   rP   s   @r   rR   rR   e   s»   ø‡ € ñ,ð\  €JØ&€Oà€JØ#&ÐØ€OØ€KØÐØ!ÐØ€GØ ÐØ)ÐØ"€KØ!€JØ%(ÐØ $ÐØ#ÐØ#€LØ!ÐØ%)ÐØ#'ÐØ),ÐØ€IØ#€LØ+/€LØ#€LØ€LØ#ÐØ #ÐØ8IÐØ %Ð÷_ ƒ r   rR   c                   ón   a a€ ] tR t^·t oRtRtR]R]R]/tRt	Rt
RtRtRtR	tV 3R
 ltV3R ltRtVtV ;t# )Ú
ClvpConfigaz  
speech_config (`dict`, *optional*):
    Dictionary of configuration options used to initialize CLVP speech encoder.
decoder_config (`dict`, *optional*):
    Dictionary of configuration options used to initialize [`ClvpDecoderConfig`].

Example:

```python
>>> from transformers import ClvpConfig, ClvpModelForConditionalGeneration

>>> # Initializing a ClvpConfig with susnato/clvp_dev style configuration
>>> configuration = ClvpConfig()

>>> # Initializing a ClvpModelForConditionalGeneration (with random weights) from the susnato/clvp_dev style configuration
>>> model = ClvpModelForConditionalGeneration(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config

>>> # We can also initialize a CLVPConfig from a CLVPTextConfig, CLVPSpeechConfig and a CLVPAutoRegressiveConfig
>>> from transformers import ClvpEncoderConfig, ClvpDecoderConfig

>>> # Initializing a CLVP text, CLVP speech and CLVP decoder configuration
>>> config_text = ClvpEncoderConfig()
>>> config_speech = ClvpEncoderConfig()
>>> decoder_config = ClvpDecoderConfig()

>>> config = ClvpConfig(config_text, config_speech, decoder_config)
```r"   r
   r   rT   Nr   gƒ/L¦
F@r   c                ó¶  <€ V P                   f&   \        4       V n         \        P                  R4       M:\	        V P                   \
        4      '       d   \        R/ V P                   B V n         V P                  f&   \        4       V n        \        P                  R4       M:\	        V P                  \
        4      '       d   \        R/ V P                  B V n        V P                  f&   \        4       V n        \        P                  R4       M:\	        V P                  \
        4      '       d   \        R/ V P                  B V n        \        SV `(  ! R/ VB  R # )NzR`text_config` is `None`. initializing the `ClvpEncoderConfig` with default values.zT`speech_config` is `None`. initializing the `ClvpEncoderConfig` with default values.zS`image_config` is `None`. initializing the `ClvpDecoderConfig` with default values.rF   )r
   r   r(   ÚinfoÚ
isinstanceÚdictr   rT   rR   ÚsuperÚ__post_init__)Úselfr,   Ú	__class__s   &,€r   ru   ÚClvpConfig.__post_init__ç   sú   ø€ Ø×ÑÒ#Ü0Ó2ˆDÔÜ�K‰KÐlÕmÜ˜×(Ñ(¬$×/Ò/Ü0ÑD°4×3CÑ3CÑDˆDÔà×ÑÒ%Ü!2Ó!4ˆDÔÜ�K‰KÐnÕoÜ˜×*Ñ*¬D×1Ò1Ü!2Ñ!H°T×5GÑ5GÑ!HˆDÔà×ÑÒ&Ü"3Ó"5ˆDÔÜ�K‰KÐmÕnÜ˜×+Ñ+¬T×2Ò2Ü"3Ñ"J°d×6IÑ6IÑ"JˆDÔä‰ÒÑ' Ô'r   c                ó¼   <€ V ^8„  d   Qh/ S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[;R&   S[;R&   S[;R&   # )r   Nr
   r   rT   r4   Úlogit_scale_init_valuer>   )rs   r   rB   rC   )r   r   s   "€r   r   ÚClvpConfig.__annotate__·   s€   ø‡ ‚ ñR Ñ(Õ(¨4Õ/Ñ6ñS ñT Ñ*Õ*¨TÕ1Ñ8ñU ñV Ñ+Õ+¨dÕ2Ñ9ñW ñX ÑñY ñZ "Ñ*ñ[ ñ\ Ñ#ò] r   )rT   r   r
   )rG   rH   rI   rJ   rK   r!   r   rR   Úsub_configsr
   r   rT   r4   rz   r>   ru   rM   rN   rO   Ú__classcell__)rw   r   s   @@r   ro   ro   ·   sY   ù‡ € ñð> €JàÐ(ØÐ*ØÐ+ð€Kð 37€KØ48€MØ59€NØ€NØ$*ÐØ #Ðõ(÷a … r   ro   )ro   rR   r   )rK   r   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   Ú
get_loggerrG   r(   r   rR   ro   Ú__all__rF   r   r   Ú<module>rƒ      sº   ðñ ã 	å .å 3ß ,ð 
×	Ò	˜HÓ	%€ñ Ð-Ô.ØôE4Ð(ó E4ó ó /ðE4ñP Ð-Ô.ØôM&Ð(ó M&ó ó /ðM&ñ` Ð-Ô.ØôA(Ð!ó A(ó ó /ðA(òH C‚r   