+
    œ°³j	  ã                   ó¢   € ^ RI Ht ^RIHt ^RIHt ]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R R	]4      4       4       tRR	.tR
# )é    )Ústrict)ÚPreTrainedConfig)Úauto_docstringzgoogle/medasr)Ú
checkpointc                   ó¬   a a€ ] tR t^t oRtRtR.tRt^t^t	Rt
RtRtRt^ tRt^€t^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V 3R ltV3R lt Rt!Vt"V ;t## )ÚLasrEncoderConfiga   
convolution_bias (`bool`, *optional*, defaults to `False`):
    Whether to use bias in convolutions of the conformer's convolution module.
conv_kernel_size (`int`, *optional*, defaults to 32):
    The kernel size of the convolution layers in the Conformer block.
subsampling_conv_channels (`int`, *optional*, defaults to 256):
    The number of channels in the subsampling convolution layers.
subsampling_conv_kernel_size (`int`, *optional*, defaults to 5):
    The kernel size of the subsampling convolution layers.
subsampling_conv_stride (`int`, *optional*, defaults to 2):
    The stride of the subsampling convolution layers.
dropout_positions (`float`, *optional*, defaults to 0.0):
    The dropout ratio for the positions in the input sequence.
feed_forward_residual_weights (`tuple[float, float]`, *optional*, defaults to `[1.5, 0.5]`):
    The residual weights for the feed forward layers.
conv_residual_weights (`tuple[float, float]`, *optional*, defaults to `[2.0, 1.0]`):
    The residual weights for the convolution layers.
batch_norm_momentum (`float`, *optional*, defaults to 0.01):
    The momentum for the batch normalization layers

Example:
```python
>>> from transformers import LasrEncoderModel, LasrEncoderConfig

>>> # Initializing a `LasrEncoder` configuration
>>> configuration = LasrEncoderConfig()

>>> # Initializing a model from the configuration
>>> model = LasrEncoderModel(configuration)

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

This configuration class is based on the LasrEncoder architecture from Google Health AI. You can find more details
and pre-trained models at [google/medasr](https://huggingface.co/google/medasr).
Úlasr_encoderÚpast_key_valuesé   i   ÚsiluFé   gš™™™™™¹?g        i'  g{®Gáz”?g�íµ ÷Æ°>g{®Gáz„?Nc                óJ   <€ V P                   V n        \        SV `  ! R/ VB  R # ©N© )Únum_attention_headsÚnum_key_value_headsÚsuperÚ__post_init__©ÚselfÚkwargsÚ	__class__s   &,€Úl/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/lasr/configuration_lasr.pyr   ÚLasrEncoderConfig.__post_init__`   s!   ø€ Ø#'×#;Ñ#;ˆÔ Ü‰ÒÑ' Ô'ó    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
&   S[ ;R&   S[ ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[ ;R&   S[;R&   S[;R&   S[S[,          S[S[R3,          ,          ;R&   S[S[,          S[S[R3,          ,          ;R&   S[;R&   S[R,          ;R&   # )é   Úhidden_sizeÚnum_hidden_layersr   Úintermediate_sizeÚ
hidden_actÚattention_biasÚconvolution_biasÚconv_kernel_sizeÚsubsampling_conv_channelsÚnum_mel_binsÚsubsampling_conv_kernel_sizeÚsubsampling_conv_strideÚdropoutÚdropout_positionsÚ	layerdropÚactivation_dropoutÚattention_dropoutÚmax_position_embeddingsÚinitializer_rangeÚlayer_norm_eps.Úfeed_forward_residual_weightsÚconv_residual_weightsÚbatch_norm_momentumNÚrope_parameters)ÚintÚstrÚboolÚfloatÚlistÚtupleÚdict)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚLasrEncoderConfig.__annotate__   s©  ø‡ ‚ ñX ÑñY ñZ Ññ[ ñ\ Ñ ñ] ñ^ Ñ!ñ_ ñ` Ñña ñb Ñ ñc ñd Ñ"ñe ñf Ññg ñh  #Ñ(ñi ñj Ññk ñl #&Ñ)ñm ñn !Ñ$ño ñp ‘S�[Ññq ñr ™s•{Ñ(ñs ñt ‘s�{Ñ ñu ñv ¡�Ñ)ñw ñx ™s•{Ñ(ñy ñz !Ñ(ñ{ ñ| Ñ#ñ} ñ~ Ñ ñ ñ@ $(©¥;±±u¸c°zÕ1BÕ#BÑOñA ñB  ¡�;©©u°c¨zÕ):Õ:ÑGñC ñD Ñ%ñE ñF ˜D•[Ñ'òG r   )r   )g      ø?g      à?)g       @g      ð?)$Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚkeys_to_ignore_at_inferencer   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r   r=   s   @@r   r   r      s°   ù‡ € ñ$ðL  €JØ#4Ð"5Ðà€KØÐØ ÐØ!ÐØ€JØ €NØ"ÐØÐØ%(ÐØ€LØ()Ð Ø#$ÐØ€GØ%(ÐØ €IØ&)ÐØ%(ÐØ#(ÐØ#ÐØ €NØEOÐ!Ø=GÐØ!%ÐØ#'€Oõ(÷K … r   r   c                   ór   a a€ ] tR t^et oRtRtR]/tRtRt	Rt
Rt^ tV 3R lt]R	 4       tV3R
 ltRtVtV ;t# )ÚLasrCTCConfigaõ  
ctc_loss_reduction (`str`, *optional*, defaults to `"mean"`):
    Specifies the reduction to apply to the output of `torch.nn.CTCLoss`. Only relevant when training an
    instance of [`LasrForCTC`].
ctc_zero_infinity (`bool`, *optional*, defaults to `True`):
    Whether to zero infinite losses and the associated gradients of `torch.nn.CTCLoss`. Infinite losses mainly
    occur when the inputs are too short to be aligned to the targets. Only relevant when training an instance
    of [`LasrForCTC`].

Example:
```python
>>> from transformers import LasrForCTC, LasrCTCConfig
>>> # Initializing a Lasr configuration
>>> configuration = LasrCTCConfig()
>>> # Initializing a model from the configuration
>>> model = LasrForCTC(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```
This configuration class is based on the Lasr CTC architecture from Google Health AI. You can find more details
and pre-trained models at [google/medasr](https://huggingface.co/google/medasr).
Úlasr_ctcÚencoder_configr   ÚmeanTNc                ó  <€ \        V P                  \        4      '       d   \        R/ V P                  B V n        MV P                  f   \        4       V n        V P                  P                  V n        \
        SV `  ! R/ VB  R # r   )Ú
isinstancerO   r;   r   r/   r   r   r   s   &,€r   r   ÚLasrCTCConfig.__post_init__ˆ   sg   ø€ Ü�d×)Ñ)¬4×0Ò0Ü"3Ñ"J°d×6IÑ6IÑ"JˆDÕØ× Ñ Ò(Ü"3Ó"5ˆDÔØ!%×!4Ñ!4×!FÑ!FˆÔÜ‰ÒÑ' Ô'r   c                ó<   € V P                   P                  ^,          # )r   )rO   r(   )r   s   &r   Úinputs_to_logits_ratioÚ$LasrCTCConfig.inputs_to_logits_ratio�   s   € à×"Ñ"×:Ñ:¸AÕ=Ð=r   c                ót   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[S[,          R,          ;R&   S[ ;R&   # )r   Ú
vocab_sizeÚctc_loss_reductionÚctc_zero_infinityNrO   Úpad_token_id)r5   r6   r7   r;   r   )r<   r=   s   "€r   r>   ÚLasrCTCConfig.__annotate__e   sU   ø‡ ‚ ñ: Ññ; ñ< Ñ$ñ= ñ> Ñ"ñ? ñ@ Ñ+Õ+¨dÕ2Ñ9ñA ñB ÑòC r   )rO   r/   )r@   rA   rB   rC   rD   rE   r   Úsub_configsrX   rY   rZ   rO   r[   r   ÚpropertyrU   rG   rH   rI   rJ   rK   s   @@r   rM   rM   e   sX   ù‡ € ñð. €JØ#Ð%6Ð7€Kà€JØ$ÐØ"ÐØ59€NØ€Lõ(ð ñ>ó ð>÷Y … r   rM   N)	Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   rM   Ú__all__r   r   r   Ú<module>rc      ss   ðõ* /å 3Ý #ñ ˜?Ô+ØôE(Ð(ó E(ó ó ,ðE(ñP ˜?Ô+Øô+>Ð$ó +>ó ó ,ð+>ð\  Ð
0‚r   