
    3j \                        S SK r S SKJr  S SKrS SKJr  S SKJrJrJ	r	J
r
Jr  S SKJr  S SKJr  SSKJrJr  SS	KJr  SS
KJrJr  SSKJrJrJr  SSKJrJr  SSKJr  SSK J!r!J"r"J#r#J$r$  SSK%J&r&  SSK'J(r(  SSK)J*r*J+r+J,r,J-r-  SSK.J/r/J0r0  SSK1J2r2J3r3J4r4J5r5J6r6  SSK7J8r8  \$Rr                  " \:5      r; " S S\8\5      r< " S S\SS9r=\" " S S\5      5       r>\"" SS9\ " S  S!\05      5       5       r?\"" SS9\ " S" S#\/5      5       5       r@ " S$ S%\R                  5      rB " S& S'\+5      rC " S( S)\*5      rD " S* S+\35      rE " S, S-\25      rF " S. S/\65      rG " S0 S1\45      rH\"" S2S39 " S4 S5\G5      5       rI " S6 S7\55      rJ/ S8QrKg)9    N)Callable)strict)	Tokenizerdecodersnormalizerspre_tokenizers
processors)Unigram)nn   )
AudioInputmake_list_of_audio)create_bidirectional_mask)ALL_ATTENTION_FUNCTIONSPreTrainedModel)ProcessingKwargsProcessorMixinUnpack)PreTokenizedInput	TextInput)TokenizersBackend)TransformersKwargsauto_docstringcan_return_tuplelogging)merge_with_config_defaults)capture_outputs   )LlamaAttentionLlamaRotaryEmbeddingapply_rotary_pos_embeager_attention_forward)ParakeetCTCConfigParakeetEncoderConfig)ParakeetEncoderBlock ParakeetEncoderConvolutionModuleParakeetEncoderModelOutputParakeetForCTCParakeetPreTrainedModel)T5Tokenizerc                   h    \ rS rSr        SS jr   SS\\\   -  S\S\S-  S\S\4
S	 jjr	S
r
g)LasrTokenizer0   Nc	           	      n   XPl         Ub~  U V
s/ s H  n
S[        U
5      ;   d  M  U
PM     nn
[        U5      S:  a$  U[        U5       Vs/ s H	  nSU S3PM     sn-  nOIUS:  a!  U[        U5      :w  a  [	        SU SU S35      eO![        U5       Vs/ s H	  nSU S3PM     nnUnUb  Xpl        Od[        U5      S4[        U5      S4[        U5      S4S	/U l        [        US-
  S
S
5       H$  nU R
                  R                  SU S3S45        M&     [        [        U R
                  SSS95      U l	        Ub%  [        R                  " U5      U R                  l        [        R                  " [        R                  " 5       [        R                   " SSSS9/5      U R                  l        [$        R                   " SSSS9U R                  l        [(        R*                  " SUUUUUS.U	D6  [,        R.                  " SS// SQSU R0                  4/S9U R                  l        g s  sn
f s  snf s  snf )Nz
<extra_id_   >r   zBoth extra_ids (z!) and additional_special_tokens (zm) are provided to LasrTokenizer. In this case the additional_special_tokens must include the extra_ids tokens        )   ▁g       r   F)unk_idbyte_fallbackr2   alwaysT)replacementprepend_schemesplit)	eos_token	unk_token	pad_token	extra_idsadditional_special_tokens$A</s>)r?   r@   z$Br@   )singlepairspecial_tokens )
_extra_idsstrlenrange
ValueError_vocab_scoresappendr   r
   
_tokenizerr   Precompiled
normalizerr   SequenceWhitespaceSplit	Metaspacepre_tokenizerr   decoderr   __init__r	   TemplateProcessingeos_token_idpost_processor)selfr:   r;   r<   _spm_precompiled_charsmapr=   r>   vocab
vocab_filekwargsxextra_tokensis                _/home/wildlama/miniconda3/lib/python3.13/site-packages/transformers/models/lasr/modular_lasr.pyrT   LasrTokenizer.__init__1   s_    $ %0'@['@!LTWXYTZDZA'@L[< 1$)yIY-ZIYA
1#Q.?IY-ZZ)Q9L0A#A &yk1RSlRm n   8=Y7GH7G!j1-7GLH(4% !& Y%Y%Y%	"D 9q="b1""))Zs!+<c*BC 2#""#
 %0)4)@)@AZ)[DOO&(6(?(?..0((U8[_`)
% #+"4"4W_gk"l"" 	
&?	
 	
 *4)F)F&>-**+*
&k \-Z Is   H(H(
H-H2	token_idsskip_special_tokensclean_up_tokenization_spacesgroup_tokensreturnc                     [        U[        5      (       a  U/nU(       a(  [        R                  " U5       Vs/ s H  ofS   PM	     nnU Vs/ s H  owU R                  :w  d  M  UPM     nn[
        R                  " U 4UUUS.UD6$ s  snf s  snf )Nr   )rb   rc   rd   )
isinstanceint	itertoolsgroupbypad_token_idr   _decode)rX   rb   rc   rd   re   r\   token_grouptokens           r`   rm   LasrTokenizer._decode~   s     i%%"I;D;L;LY;WX;WKQ;WIX )2P	ud>O>O5OU		P ((
 3)E	

 
 	
 Y Qs   BB#B)rE   rL   rJ   )r@   z<unk>z<pad>Nd   NNN)FNT)__name__
__module____qualname____firstlineno__rT   ri   listboolrF   rm   __static_attributes__rD       r`   r,   r,   0   st     "&"&K
` %*48!
c?
 "
 '+Tk	

 
 

 
ry   r,   c                   4    \ rS rSrSSSS.SSSS.S	S
0S.rSrg)LasrProcessorKwargs   i>  longestT)sampling_ratepaddingreturn_attention_maskrightF)r   padding_sideadd_special_tokensreturn_tensorspt)audio_kwargstext_kwargscommon_kwargsrD   N)rr   rs   rt   ru   	_defaultsrx   rD   ry   r`   r{   r{      s3     # %)
 #"'

 +D1Iry   r{   F)totalc                      ^  \ rS rSrU 4S jr\  SS\S\\-  \	\   -  \	\   -  S-  S\
S-  S\\   4S jj5       r\S	 5       rS
rU =r$ )LasrProcessor   c                 $   > [         TU ]  X5        g N)superrT   )rX   feature_extractor	tokenizer	__class__s      r`   rT   LasrProcessor.__init__   s    *6ry   Naudiotextr~   r\   c                    [        U5      nU R                  " [        4SU R                  R                  0UD6nUc   [
        R                  SUS   S    S35        O#X5S   S   :w  a  [        SU SUS   S    S35      eUb  U R                  " U40 US   D6nUb  U R                  " U40 US	   D6nUc  W$ WS
   WS'   U$ )a  
sampling_rate (`int`, *optional*):
    The sampling rate of the input audio in Hz. This should match the sampling rate expected by the feature
    extractor (defaults to 16000 Hz). If provided, it will be validated against the processor's expected
    sampling rate, and an error will be raised if they don't match. If not provided, a warning will be
    issued and the default sampling rate will be assumed.
tokenizer_init_kwargszUYou've provided audio without specifying the sampling rate. It will be assumed to be r   r~   z$, which can result in silent errors.z The sampling rate of the audio (z5) does not match the sampling rate of the processor (zD). Please provide resampled the audio to the expected sampling rate.r   	input_idslabels)	r   _merge_kwargsr{   r   init_kwargsloggerwarning_oncerI   r   )rX   r   r   r~   r\   output_kwargsinputs	encodingss           r`   __call__LasrProcessor.__call__   sG    #5)**
"&.."<"<
 
  ghu  wE  iF  GV  iW  hX  X|  } N;OLL2=/Av  xE  FT  xU  Ve  xf  wg  gk  l  ++ES]>5RSFtL}]/KLI<M(5F8Mry   c                 :    U R                   R                  nUS/-   $ )Nr   )r   model_input_names)rX   feature_extractor_input_namess     r`   r   LasrProcessor.model_input_names   s!    (,(>(>(P(P%,z99ry   rD   NN)rr   rs   rt   ru   rT   r   r   r   r   rv   ri   r   r{   r   propertyr   rx   __classcell__r   s   @r`   r   r      s    7  bf$(	(( ++d9o=EV@WWZ^^( Tz	(
 ,-( (T : :ry   r   zgoogle/medasr)
checkpointc                   ,   \ 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'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\\   \\S4   -  \S'   Sr\\   \\S4   -  \S'   Sr\\S'   Sr\S-  \S'   \" 5       r\" 5       rSrg) LasrEncoderConfig   a  
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).
   hidden_size   num_hidden_layersi   intermediate_sizeFattention_biasconvolution_bias    conv_kernel_size   subsampling_conv_kernel_size   num_mel_binsi'  max_position_embeddingsgư>layer_norm_eps)g      ?g      ?.feed_forward_residual_weights)g       @g      ?conv_residual_weightsg{Gz?batch_norm_momentumNrope_parametersrD   )rr   rs   rt   ru   __doc__r   ri   __annotations__r   r   r   rw   r   r   r   r   r   r   floatr   rv   tupler   r   r   dictAttributeErrorsubsampling_factorscale_inputrx   rD   ry   r`   r   r      s    $L Ks!s! ND "d"c() #)L##(S( NE EO!4;ucz1B#BO=G4;ucz)::G!%%#'OTD['') "Kry   r   c                   F    \ rS rSr% SrSr\\S'   Sr\\S'   \	S 5       r
Srg	)
LasrCTCConfigi  a  
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).
r   
vocab_sizer   rl   c                 4    U R                   R                  S-  $ )Nr   )encoder_configsubsampling_conv_stride)rX   s    r`   inputs_to_logits_ratio$LasrCTCConfig.inputs_to_logits_ratio6  s    ""::A==ry   rD   N)rr   rs   rt   ru   r   r   ri   r   rl   r   r   rx   rD   ry   r`   r   r     s/    . JL#> >ry   r   c                   j   ^  \ rS rSrS\4U 4S jjrS\R                  S\R                  4S jrSr	U =r
$ )LasrEncoderSubsamplingi;  configc                 &  > [         TU ]  5         [        R                  " UR                  UR
                  5      U l        [        R                  " UR
                  UR
                  UR                  UR                  S9U l
        [        R                  " UR
                  UR                  UR                  UR                  S9U l        [        R                  " UR                  UR
                  5      U l        [        R                  " 5       U l        g )N)kernel_sizestride)r   rT   r   Linearr   r   dense_0Conv1dr   r   conv_0subsampling_conv_channelsconv_1dense_1ReLUact_fn)rX   r   r   s     r`   rT   LasrEncoderSubsampling.__init__<  s    yy!4!4f6H6HIii;;11	
 ii,,;;11	
 yy!A!A6CUCUVggiry   input_featuresrf   c                 ,   U R                  U R                  U5      5      nUR                  SS5      nU R                  U R                  U5      5      nU R                  U R	                  U5      5      nUR                  SS5      nU R                  U5      $ )Nr/   r   )r   r   	transposer   r   r   )rX   r   hidden_statess      r`   forwardLasrEncoderSubsampling.forwardN  sz    DLL$@A%//15DKK$>?DKK$>?%//15||M**ry   )r   r   r   r   r   )rr   rs   rt   ru   r   rT   torchTensorr   rx   r   r   s   @r`   r   r   ;  s0     0  $+ell +u|| + +ry   r   c                       \ rS rSrSrg)LasrEncoderRotaryEmbeddingiW  rD   Nrr   rs   rt   ru   rx   rD   ry   r`   r   r   W  s    ry   r   c                      ^  \ rS rSrS\S\4U 4S jjr  SS\R                  S\	\R                  \R                  4   S-  S\R                  S-  S	\
\   S
\	\R                  \R                  4   4
S jjrSrU =r$ )LasrEncoderAttentioniZ  r   	layer_idxc                 2   > [         TU ]  X5        SU l        g )NF)r   rT   	is_causalrX   r   r   r   s      r`   rT   LasrEncoderAttention.__init__[  s    +ry   Nr   position_embeddingsattention_maskr\   rf   c                    UR                   S S n/ UQSPU R                  P7nU R                  U5      R                  U5      R	                  SS5      nU R                  U5      R                  U5      R	                  SS5      nU R                  U5      R                  U5      R	                  SS5      n	Uu  p[        XxX5      u  px[        R                  " U R                  R                  [        5      nU" U UUU	U4U R                  (       d  SOU R                  U R                  S.UD6u  pUR                   " / UQSP76 R#                  5       nU R%                  U5      nX4$ )Nr3   r/   r   r1   )dropoutscaling)shapehead_dimq_projviewr   k_projv_projr!   r   get_interfacer   _attn_implementationr"   trainingattention_dropoutr   reshape
contiguouso_proj)rX   r   r   r   r\   input_shapehidden_shapequery_states
key_statesvalue_statescossinattention_interfaceattn_outputattn_weightss                  r`   r   LasrEncoderAttention.forward_  s\    $))#2.88b8$--8{{=166|DNNqRST[[/44\BLLQPQR
{{=166|DNNqRST&#7RU#[ (?(M(MKK,,.E)
 %8	%
  $}}C$2H2HLL	%
 	%
! "));;;;FFHkk+.((ry   )r   r   )rr   rs   rt   ru   r   ri   rT   r   r   r   r   r   r   rx   r   r   s   @r`   r   r   Z  s    0 S  IM.2	")||") #5<<#=>E") t+	")
 +,") 
u||U\\)	*") ")ry   r   c                   4   ^  \ rS rSrSS\4U 4S jjjrSrU =r$ )LasrEncoderConvolutionModulei  r   c                    > [         TU ]  X5        SU l        [        R                  " UR
                  UR                  S9U l        g )Nsame)momentum)r   rT   r   r   BatchNorm1dr   r   norm)rX   r   module_configr   s      r`   rT   %LasrEncoderConvolutionModule.__init__  s5    /NN6#5#5@Z@Z[	ry   )r  r   r   )rr   rs   rt   ru   r   rT   rx   r   r   s   @r`   r  r    s    \0 \ \ry   r  c                      ^  \ rS rSrS\S\4U 4S jjr  SS\R                  S\R                  S-  S\R                  S-  S	\	\
   S
\R                  4
S jjrSrU =r$ )LasrEncoderBlocki  r   r   c                 >  > [         TU ]  X5        UR                  U l        UR                  U l        [        R
                  " UR                  UR                  SS9U l        [        R
                  " UR                  UR                  SS9U l	        [        R
                  " UR                  UR                  SS9U l
        [        R
                  " UR                  UR                  SS9U l        [        R
                  " UR                  UR                  SS9U l        g )NF)bias)r   rT   r   r   r   	LayerNormr   r   norm_feed_forward1norm_self_att	norm_convnorm_feed_forward2norm_outr   s      r`   rT   LasrEncoderBlock.__init__  s    +-3-Q-Q*%+%A%A""$,,v/A/A6CXCX_d"e\\&*<*<f>S>SZ_`f&8&8&:O:OV[\"$,,v/A/A6CXCX_d"eV%7%79N9NUZ[ry   Nr   r   r   r\   rf   c                 &   UnU R                  U R                  U5      5      nU R                  S   U-  U R                  S   U-  -   nU R                  U5      nU R                  " SUUUS.UD6u  pxX-   nU R                  U R                  U5      US9n	U R                  S   U-  U R                  S   U	-  -   nUnU R                  U R                  U5      5      nU R                  S   U-  U R                  S   U-  -   nU R                  U5      nU$ )Nr   r/   )r   r   r   )r   rD   )feed_forward1r   r   r!  	self_attnconvr"  r   feed_forward2r#  r$  )
rX   r   r   r   r\   residualnormalized_hidden_statesr  _conv_outputs
             r`   r   LasrEncoderBlock.forward  sD    !**4+B+B=+QR..q1H<t?a?abc?dgt?tt 	 $(#5#5m#D  
2) 3
 	
 &3ii} =ni]2215EHbHbcdHehsHss **4+B+B=+QR..q1H<t?a?abc?dgt?tt 	 m4ry   )r   r   r"  r   r#  r$  r!  r   )rr   rs   rt   ru   r   ri   rT   r   r   r   r   r   rx   r   r   s   @r`   r  r    s|    
\0 
\S 
\ /337	!||! t+! #\\D0	!
 +,! 
! !ry   r  c                   @    \ rS rSrSrS rS\R                  4S jrSr	g)LasrPreTrainedModeli  Fc                 0    [         R                  " U5        g r   )r   _init_weights)rX   modules     r`   r3  !LasrPreTrainedModel._init_weights  s    %%f-ry   input_lengthsc                     [        U R                  [        5      (       a  U R                  R                  OU R                  nUR                  nUR
                  nSn[        U5       H  nX-
  U-  S-   nM     U$ )Nr   r/   )rh   r   r   r   r   r   rH   )rX   r6  r   r   r   
num_layersr-  s          r`   _get_subsampling_output_length2LasrPreTrainedModel._get_subsampling_output_length  sn    7A$++}7]7]33cgcncn$AA77
z"A*8VCaGM # ry   rD   N)
rr   rs   rt   ru   _supports_flex_attnr3  r   r   r9  rx   rD   ry   r`   r1  r1    s    .	ELL 	ry   r1  c                       \ rS rSrSrg)LasrEncoderModelOutputi  rD   Nr   rD   ry   r`   r=  r=    s    ry   r=  zh
    The LasrEncoder model, based on the Conformer architecture](https://arxiv.org/abs/2005.08100).
    )custom_introc                      ^  \ rS rSr% \\S'   SrS\4U 4S jjr\\	\
\  SS\R                  S\R                  S-  S\S-  S	\\   S
\4
S jj5       5       5       5       rSrU =r$ )LasrEncoderi  r   encoderc           	        > [         TU ]  U5        SU l        UR                  U l        UR                  U l        UR
                  U l        [        U5      U l        [        U5      U l	        [        R                  " [        UR                  5       Vs/ s H  n[        X5      PM     sn5      U l        [        R                   " UR"                  UR$                  SS9U l        U R)                  5         g s  snf )NF)epsr  )r   rT   gradient_checkpointingr   dropout_positions	layerdropr   
subsamplerr   
rotary_embr   
ModuleListrH   r   r  layersr  r   r   out_norm	post_initr   s      r`   rT   LasrEncoder.__init__  s     &+#~~!'!9!9))084V<mmBGH`H`BabBaYf0Bab
 V%7%7V=R=RY^_	 cs   C3Nr   r   output_attention_maskr\   rf   c                    U R                  U5      nU R                  U[        R                  " UR                  S   UR
                  S9R                  S5      5      u  pg[        R                  R                  XPR                  U R                  S9n[        R                  R                  X`R                  U R                  S9n[        R                  R                  XpR                  U R                  S9nSnUb  U R                  X%R                  S   S9nUn[        U R                  UUS9nU R                   HS  n	Sn
U R                  (       a'  [        R                   " / 5      nXR"                  :  a  S	n
U
(       a  MF  U	" U4UXg4S
.UD6nMU     U R%                  U5      n['        UU(       a  Ub  UR)                  5       S9$ SS9$ )a  
output_attention_mask (`bool`, *optional*):
    Whether to return the output attention mask.

Example:

```python
>>> from transformers import AutoProcessor, LasrEncoder
>>> from datasets import load_dataset, Audio

>>> model_id = "google/medasr"
>>> processor = AutoProcessor.from_pretrained(model_id)
>>> encoder = ParakeetEncoder.from_pretrained(model_id)

>>> ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
>>> ds = ds.cast_column("audio", Audio(sampling_rate=processor.feature_extractor.sampling_rate))

>>> inputs = processor(ds[0]["audio"]["array"])
>>> encoder_outputs = encoder(**inputs)

>>> print(encoder_outputs.last_hidden_state.shape)
```
r/   )devicer   )pr  N)target_length)r   inputs_embedsr   FT)r   r   )last_hidden_stater   )rG  rH  r   aranger   rP  	unsqueezer   
functionalr   r  rE  _get_output_attention_maskr   r   rJ  randrF  rK  r=  ri   )rX   r   r   rN  r\   r   r  r  output_maskencoder_layerto_dropdropout_probabilitys               r`   r   LasrEncoder.forward  s   F 7??5<<(;(;A(>}G[G[\ffghi
 --m||VZVcVc-dmm##C+A+ADMM#Zmm##C+A+ADMM#Z%99.XkXklmXn9oK(N2;;')
 "[[MG}}&+jjn#&7"G7 -!!#1),
! 	! )  m4%+0E+Ja;??,
 	
gk
 	
ry   )r   rE  rD  rF  rJ  rK  rH  rG  r   )rr   rs   rt   ru   r   r   base_model_prefixrT   r   r   r   r   r   r   rw   r   r   r=  r   rx   r   r   s   @r`   r@  r@    s     !0 "  /3-1	H
H
 t+H
  $d{	H

 +,H
 
 H
     H
ry   r@  c                   (   ^  \ rS rSrU 4S jrSrU =r$ )
LasrForCTCi<  c                  8   > [        5       R                  " S0 U D6$ )a  
Example:

```python
>>> from transformers import AutoProcessor, LasrForCTC
>>> from datasets import load_dataset, Audio

>>> model_id = "google/medasr"
>>> processor = AutoProcessor.from_pretrained(model_id)
>>> model = LasrForCTC.from_pretrained(model_id)

>>> ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
>>> ds = ds.cast_column("audio", Audio(sampling_rate=processor.feature_extractor.sampling_rate))

>>> inputs = processor(ds[0]["audio"]["array"], text=ds[0]["text"])
>>> predicted_ids = model.generate(**inputs)
>>> transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)

>>> print(transcription)
```
rD   )r   generate)super_kwargsr   s    r`   rc  LasrForCTC.generate=  s    , w/,//ry   rD   )rr   rs   rt   ru   rc  rx   r   r   s   @r`   ra  ra  <  s    0 0ry   ra  )ra  r@  r1  r   r   r   r,   )Lrj   collections.abcr   r   huggingface_hub.dataclassesr   
tokenizersr   r   r   r   r	   tokenizers.modelsr
   r   audio_utilsr   r   masking_utilsr   modeling_utilsr   r   processing_utilsr   r   r   tokenization_utils_baser   r   tokenization_utils_tokenizersr   utilsr   r   r   r   utils.genericr   utils.output_capturingr   llama.modeling_llamar   r    r!   r"   parakeet.configuration_parakeetr#   r$   parakeet.modeling_parakeetr%   r&   r'   r(   r)   t5.tokenization_t5r*   
get_loggerrr   r   r,   r{   r   r   r   Moduler   r   r   r  r  r1  r=  r@  ra  __all__rD   ry   r`   <module>rz     s    $  . S S %  9 6 F H H C > R R 7 5 v v V  - 
		H	%d
K!2 d
N*%   2:N 2: 2:j ?+7#- 7#  ,7#t ?+>% >  ,>@+RYY +8 <!5 ;')> ')T\#C \.+ .b1 &	7 	 
a
% a

a
H0 04ry   