+
    œ°³j^  ã                   ó˜   € ^ RI t^ RIHt ^RIHt ^RIHt ^RIH	t	 ^RI
Ht ^RIHtHt ]	! RR	7      ] ! R
 R]4      4       4       tR.tR# )é    N)Ústrict)ÚPreTrainedConfig)ÚRopeParameters)Úauto_docstring)Úinterval)ÚCONFIG_MAPPINGÚ
AutoConfigzHKUSTAudio/xcodec2-hf)Ú
checkpointc                   ó  a a€ ] tR t^t oRtRtR.tRtRt^t	^t
^tRtRt]! RRR	7      ! R
R7      tRtRtRtRtRtRt^@tR]/t^0tRtRtRtRtRtRtV 3R lt R t!]"V3R lR l4       t#]"V3R lR l4       t$V3R lt%Rt&Vt'V ;t(# )ÚXcodec2Configaa  
downsampling_ratios (`list[int]`, *optional*, defaults to `[2, 2, 4, 4, 5]`):
    Ratios for downsampling in the encoder.
semantic_model_config (`Union[Dict, Wav2Vec2BertConfig]`, *optional*):
    An instance of the configuration object for the semantic (Wav2Vec2BertConfig) model.
quantization_dim (`int`, *optional*, defaults to 2048):
    Dimension for the vector quantization codebook.
quantization_levels (`list[int]`, *optional*, defaults to `[4, 4, 4, 4, 4, 4, 4, 4]`):
    Levels for the vector quantization codebook.

Example:

```python
>>> from transformers import Xcodec2Config, Xcodec2Model

>>> # Initializing configuration
>>> configuration = Xcodec2Config()

>>> # Initializing a model (with random weights) from the configuration
>>> model = Xcodec2Model(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úxcodec2Úpast_key_valuesi   i   Úsilug        g      ð?)ÚminÚmaxg{®Gáz”?)Údefaultg�íµ ÷Æ°>NFÚsemantic_model_configi€>  gš™™™™™¹?i   c                ó  <€ \        V P                  \        4      '       d^   V P                  P                  R R4      V P                  R &   \        V P                  R ,          ,          ! R/ V P                  B V n        M'V P                  f   \        R,          ! ^R7      V n        V P
                  f#   V P                  V P                  ,          V n        V P                  f   V P                  V n        \        SV `(  ! R/ VB  R# )Ú
model_typezwav2vec2-bertN)Únum_hidden_layers© )Ú
isinstancer   ÚdictÚgetr   Úhead_dimÚhidden_sizeÚnum_attention_headsÚnum_key_value_headsÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s   &,€Úr/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/xcodec2/configuration_xcodec2.pyr    ÚXcodec2Config.__post_init__V   sÔ   ø€ Ü�d×0Ñ0´$×7Ò7Ø7;×7QÑ7Q×7UÑ7UÐVbÐdsÓ7tˆD×&Ñ& |Ñ4Ü)7¸×8RÑ8RÐS_Õ8`Ö)añ *Ø×,Ñ,ñ*ˆDÕ&ð ×'Ñ'Ò/Ü)7¸Ö)HÐ[]Ô)^ˆDÔ&Ø�=‰=Ò Ø ×,Ñ,°×0HÑ0HÕHˆDŒMØ×#Ñ#Ò+Ø'+×'?Ñ'?ˆDÔ$ä‰ÒÑ' Ô'ó    c                ó–   € V P                   V P                  ,          ^ 8w  d'   \        RV P                    RV P                   R24      hR# )zOPart of `@strict`-powered validation. Validates the architecture of the config.zThe hidden size (z6) is not a multiple of the number of attention heads (z).N)r   r   Ú
ValueError©r!   s   &r$   Úvalidate_architectureÚ#Xcodec2Config.validate_architecturee   sS   € à×Ñ˜d×6Ñ6Õ6¸!Ô;ÜØ# D×$4Ñ$4Ð#5ð 6Ø×2Ñ2Ð3°2ð7óð ñ <r&   c                ó    <€ V ^8„  d   QhRS[ /# ©é   Úreturn©Úint)ÚformatÚ__classdict__s   "€r$   Ú__annotate__ÚXcodec2Config.__annotate__n   s   ø€ ÷ 6ñ 6™Cñ 6r&   c                óT   € \        \        P                  ! V P                  4      4      # )N)r1   ÚnpÚprodÚdownsampling_ratiosr)   s   &r$   Ú
hop_lengthÚXcodec2Config.hop_lengthm   s   € ä”2—7’7˜4×3Ñ3Ó4Ó5Ð5r&   c                ó    <€ V ^8„  d   QhRS[ /# r-   r0   )r2   r3   s   "€r$   r4   r5   r   s   ø€ ÷ #ñ #‘sñ #r&   c                ó(   € V P                   ^,          # )é   )r:   r)   s   &r$   Ún_fftÚXcodec2Config.n_fftq   s   € à�‰ Õ"Ð"r&   c                óò  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[ ;R&   S[;R&   S[;R	&   S[ R
,          ;R&   S[;R&   S[S[,          R
,          ;R&   S[;R&   S[ S[,          R
,          ;R&   S[ ;R&   S[ ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[,          R
,          ;R&   S[ ;R&   S[;R&   S[ ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   # )r.   r   Úintermediate_sizer   r   r   Ú
hidden_actÚmax_position_embeddingsÚinitializer_rangeÚrms_norm_epsNÚpad_token_idÚtie_word_embeddingsÚrope_parametersÚattention_biasÚattention_dropoutr   Úencoder_hidden_size.r9   r   Úsampling_rateÚactivation_dropoutÚquantization_dimÚquantization_levels)	r1   ÚstrÚfloatÚboolr   r   ÚlistÚtupler   )r2   r3   s   "€r$   r4   r5      s�  ø‡ ‚ ñ< Ññ= ñ> Ñ!ñ? ñ@ ÑñA ñB Ñ!ñC ñD Ñ!ñE ñF ÑñG ñH !Ñ'ñI ñJ ÑGñK ñL ÑñM ñN ˜•*Ñ#ñO ñP Ñ%ñQ ñR $¡dÕ*¨TÕ1Ñ8ñS ñT Ñ ñU ñV ™U•{ TÕ)Ñ/ñW ñX ÑñY ñ^ Ñ!ñ_ ñ` ™c�¡U©3°¨8¥_Õ4ÑFña ñb  Ñ"2Õ2°TÕ9Ñ@ñc ñd Ññe ñf Ñ#ñg ñh Ñ ñi ñj ™c�¡U©3°¨8¥_Õ4ÑOòk r&   )r   r   r   )r.   r.   r>   r>   é   )r>   r>   r>   r>   r>   r>   r>   r>   ))Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úkeys_to_ignore_at_inferencer   rB   r   r   r   rC   rD   r   rE   rF   rG   rH   rI   rJ   rK   r   r	   Úsub_configsrL   r9   r   rM   rN   rO   rP   r    r*   Úpropertyr:   r?   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r#   r3   s   @@r$   r   r      sæ   ù‡ € ñð2 €JØ#4Ð"5ÐØ€KØ!ÐØÐØ!ÐØ!ÐØ€JØ#'ÐÙ'¨C°SÕ9À$ÔGÐØ€LØ#€LØ %ÐØ48€OØ €NØ,/ÐØ€HØ*¨JÐ7€Kà!ÐØ7FÐØ<@ÐØ€MØ #ÐØ ÐØ7OÐõ(òð ÷6ó ð6ð ÷#ó ð#÷g … r&   r   )Únumpyr7   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úmodeling_rope_utilsr   Úutilsr   Úutils.type_validatorsr   Úautor   r	   r   Ú__all__r   r&   r$   Ú<module>rk      sT   ðó* Ý .å 3Ý 1Ý #Ý -ß -ñ Ð2Ô3ØôR#Ð$ó R#ó ó 4ðR#ðj Ð
‚r&   