+
    œ°³j¢Z  ã                   ó„  € ^ RI Ht ^ RIHt ^ RIHt ^RIHt ^RIH	t	H
t
HtHt ]
! 4       '       d	   ^ 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R7      ] ! R R]4      4       4       t. ROtR# )é    )ÚSequence)ÚAny)Ústrict)ÚPreTrainedConfig)Úauto_docstringÚis_timm_availableÚloggingÚrequires_backends)ÚImageNetInfoÚinfer_imagenet_subsetzgoogle/gemma-3n-E4B)Ú
checkpointc                   óN  a a€ ] tR t^$t oRtRtR.tRRRRRRRR	R
R	RR	RRRRRRRR/
tRR.R.3RRR.R.3RR.R.3/tRt	Rt
Rt^#t^t^tRtRtRtRtRtR t^ t^t^tR tR!tR"tR#tR$tR!tR%tR&R'R(R)/tR*t Rt!^ t"R+t#R t$^t%^t&^@t'R!t(V 3R, lt)R- t*V3R. lV 3R/ llt+R0 t,V3R1 lt-R2t.Vt/V ;t0# )3ÚGemma3nTextConfigaÈ  
vocab_size_per_layer_input (`int`, *optional*, defaults to 262144):
    Vocabulary size of the per-layer text embeddings that augment the standard embeddings.
hidden_size_per_layer_input (`int`, *optional*, defaults to 256):
    Dimension of the hidden representations for per-layer embeddings.
altup_active_idx (`int`, *optional*, defaults to 0):
    The index of the prediction from which AltUp will compute additional predictions or correct the active prediction.
altup_coef_clip (`float`, *optional*, defaults to 120.0):
    The maximum amplitude of an AltUp prediction or correction coefficient weight.
altup_correct_scale (`bool`, *optional*, defaults to `True`):
    If True, apply the `AltUp.correct_output_scale` to the corrected prediction at `altup_active_idx`.
altup_num_inputs (`int`, *optional*, defaults to 4):
    The number of predictions that AltUp should make given the input sequence.
num_kv_shared_layers (`int`, *optional*, defaults to 15):
    The number of layers that share KV cache values. During the forward pass, the last `num_kv_shared_layers`
    layers in the model "share" the KV values in that each local and global layer in this range uses the KV
    cache values computed for the last local or global layer, respectively, before entering this range. The
    value should be a multiple of the attention pattern size (see `layer_types` parameter).
laurel_rank (`int`, *optional*, defaults to 64):
    The intermediate size for the linear projections in the Learned Augmented Residual Layer.
activation_sparsity_pattern (`Sequence[float]`, *optional*):
    The sparsity factor used to extract the top-k activations for a given layer. The provided Sequence must
    explicitly provide a sparsity value for each layer in the model. By default, the first 10 layers are
    sparse with a sparsity factor of 0.95 and the rest are dense.

```python
>>> from transformers import Gemma3nTextModel, Gemma3nTextConfig

>>> # Initializing a Gemma3nText gemma3n_text-E4B style configuration
>>> configuration = Gemma3nTextConfig()

>>> # Initializing a model from the gemma3n_text-E4B style configuration
>>> model = Gemma3nTextModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```
Úgemma3n_textÚpast_key_valueszlayers.*.self_attn.q_projÚcolwisezlayers.*.self_attn.k_projzlayers.*.self_attn.v_projzlayers.*.self_attn.q_normÚreplicated_with_grad_allreducezlayers.*.self_attn.k_normzlayers.*.self_attn.v_normzlayers.*.self_attn.o_projÚrowwisezlayers.*.mlp.gate_projzlayers.*.mlp.up_projzlayers.*.mlp.down_projÚembed_tokensÚ	input_idsÚinputs_embedsÚlayersÚhidden_statesÚattention_maskÚnormi  é   i @  é   Úgelu_pytorch_tanhi €  ç{®Gáz”?ç�íµ ÷Æ°>TNFç        i   g      >@Úglobalg    €„.AÚlocalg     ˆÃ@é   g      ^@c                ó<  <€ \        V P                  \        4      '       dB   \        V P                  4      ;q P                  8w  d   \        R V P                   RV R24      h\        V P                  \        4      '       g$   V P                  .V P                  ,          V n        V P                  fA   \        V P                  4       Uu. uF  q3^,           ^,          ^ 8X  d   RMRNK  	  upV n        V P                  fE   V P                  ^
8”  d   ^
M^ pR.V,          R.V P                  V,
          ,          ,           V n        \        V P                  4      ;qPP                  8w  d   \        RV P                   RV R24      h\        SV `(  ! R	/ VB  R# u upi )
zjintermediate_size must have an explicit intermediate size for every layer or one for all layers. Expected z values but got Ú.NÚfull_attentionÚsliding_attentiongffffffî?r!   zeactivation_sparsity_pattern must have an explicit activation sparsity value for every layer.Expected © )Ú
isinstanceÚintermediate_sizer   ÚlenÚnum_hidden_layersÚ
ValueErrorÚlayer_typesÚrangeÚactivation_sparsity_patternÚsuperÚ__post_init__)ÚselfÚkwargsÚintsize_lenÚiÚnum_sparse_layersÚlen_aspÚ	__class__s   &,    €Úr/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/gemma3n/configuration_gemma3n.pyr3   ÚGemma3nTextConfig.__post_init__ƒ   sŽ  ø€ ä�t×-Ñ-¬x×8Ò8Ü # D×$:Ñ$:Ó ;Ð;�×@VÑ@VÔVäðØ ×2Ñ2Ð3Ð3CÀKÀ=ÐPQðSóð ô ˜D×2Ñ2´H×=Ò=Ø&*×&<Ñ&<Ð%=À×@VÑ@VÕ%VˆDÔ"à×ÑÒ#äW\Ð]a×]sÑ]sÔWtó ÙWtÐRS¨¥U¨a¥K°1Ô$4Ñ Ð:MÒMÑWtñ ˆDÔð ×+Ñ+Ò3Ø&*×&<Ñ&<¸rÔ&A¡ÀqÐØ04¨vÐ8IÕ/IÈSÈEØ×&Ñ&Ð):Õ:õMõ 0ˆDÔ,ô ˜4×;Ñ;Ó<Ð<ˆG×AWÑAWÔWÜðØ ×2Ñ2Ð3Ð3CÀGÀ9ÈAðOóð ô
 	‰ÒÑ' Ô'ùò! s   Ã!F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)Úhidden_sizeÚnum_attention_headsr.   )r4   s   &r;   Úvalidate_architectureÚ'Gemma3nTextConfig.validate_architecture¢   sS   € à×Ñ˜d×6Ñ6Õ6¸!Ô;ÜØ# D×$4Ñ$4Ð#5ð 6Ø×2Ñ2Ð3°2ð7óð ñ <ó    c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# ©é   Úreturn©ÚdictÚstrr   )ÚformatÚ__classdict__s   "€r;   Ú__annotate__ÚGemma3nTextConfig.__annotate__ª   s   ø€ ÷ ñ ™™c¡3˜h�ñ rB   c                ó„   <€ \         SV `  4       p\        V R R4      '       d   V P                  ^,
          ^,          VR&   V# )Úuse_bidirectional_attentionFÚsliding_window)r2   Úto_dictÚgetattrrP   ©r4   Úoutputr:   s   & €r;   rQ   ÚGemma3nTextConfig.to_dictª   sA   ø€ Ü‘‘Ó"ˆô �4Ð6¸×>Ò>Ø(,×(;Ñ(;¸aÕ(?À1Õ'DˆFÐ#Ñ$ØˆrB   c                ó´  € VP                  R R4      pRRR/RRR//pV P                  e   V P                  MTV n        Ve#   V P                  R,          P                  V4       V P                  P                  R4      f   RR/V P                  R&   V P                  R,          P	                  RVP                  RV P
                  R,          4      4       V P                  P                  R4      f   RR/V P                  R&   V P                  R,          P	                  RVP                  RV P
                  R	,          4      4       V P                  4        V# )
Úrope_scalingNr(   Ú	rope_typeÚdefaultr'   Ú
rope_thetar"   Úrope_local_base_freqr#   )ÚpopÚrope_parametersÚupdateÚgetÚ
setdefaultÚdefault_thetaÚstandardize_rope_params)r4   r5   rW   Údefault_rope_paramss   &,  r;   Úconvert_rope_params_to_dictÚ-Gemma3nTextConfig.convert_rope_params_to_dict³   sM  € Ø—z‘z .°$Ó7ˆð
   +¨yÐ!9Ø˜{¨IÐ6ð
Ðð 8<×7KÑ7KÒ7W˜t×3Ò3Ð]pˆÔØÒ#Ø× Ñ Ð!1Õ2×9Ñ9¸,ÔGð ×Ñ×#Ñ#Ð$4Ó5Ò=Ø6AÀ9Ð5MˆD× Ñ Ð!1Ñ2Ø×ÑÐ-Õ.×9Ñ9Ø˜&Ÿ*™* \°4×3EÑ3EÀhÕ3OÓPô	
ð ×Ñ×#Ñ#Ð$7Ó8Ò@Ø9DÀiÐ8PˆD× Ñ Ð!4Ñ5Ø×ÑÐ0Õ1×<Ñ<Ø˜&Ÿ*™*Ð%;¸T×=OÑ=OÐPWÕ=XÓYô	
ð
 	×$Ñ$Ô&ØˆrB   c                óp  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ S[S[ ,          ,          ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[ ;R	&   S[;R
&   S[;R&   S[;R&   S[ R,          ;R&   S[ S[S[ ,          ,          R,          ;R&   S[ R,          ;R&   S[;R&   S[R,          ;R&   S[;R&   S[ S[,          R,          ;R&   S[ ;R&   S[S[,          R,          ;R&   S[;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[S[S[,          ,          R,          ;R &   # )!rE   Ú
vocab_sizer>   r+   r-   r?   Únum_key_value_headsÚhead_dimÚhidden_activationÚmax_position_embeddingsÚinitializer_rangeÚrms_norm_epsÚ	use_cacheNÚpad_token_idÚeos_token_idÚbos_token_idÚtie_word_embeddingsr]   Úattention_biasÚattention_dropoutrP   r/   Úfinal_logit_softcappingÚvocab_size_per_layer_inputÚhidden_size_per_layer_inputÚaltup_active_idxÚaltup_coef_clipÚaltup_correct_scaleÚaltup_num_inputsÚnum_kv_shared_layersÚlaurel_rankr1   )ÚintÚlistrI   ÚfloatÚboolrH   )rJ   rK   s   "€r;   rL   rM   $   s  ø‡ ‚ ñ| Ññ} ñ~ Ññ ñ@ ™T¡#�Y•Ñ/ñA ñB ÑñC ñD Ñ ñE ñF Ñ ñG ñH ÑñI ñJ Ñ0ñK ñL !Ñ)ñM ñN Ñ#ñO ñP ÑñQ ñR ÑñS ñT ˜•*Ñ ñU ñV ™™S�	•/ DÕ(Ñ,ñW ñX ˜•*Ñ ñY ñZ Ñ$ñ[ ñ\ ˜D•[Ñ'ñ] ñ^ Ñ ñ_ ñ` ™U•{ TÕ)Ñ/ña ñb Ññc ñd ‘c•˜TÕ!Ñ(ñe ñf #Ñ)ñg ñj !$Ñ-ñk ñl "%Ñ*ñm ñn Ñño ñp Ñ"ñq ñr Ñ$ñs ñt Ññu ñv Ñ"ñw ñx Ññy ñz "'©©e­Õ!4°tÕ!;ÑBò{ rB   )r1   r+   r/   r]   )1Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚkeys_to_ignore_at_inferenceÚbase_model_tp_planÚbase_model_pp_planrg   r>   r+   r-   r?   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   r]   rs   rt   rP   r/   ru   ra   rv   rw   rx   ry   rz   r{   r|   r}   r1   r3   r@   rQ   rd   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r:   rK   s   @@r;   r   r   $   sq  ù‡ € ñ%ðN  €JØ#4Ð"5Ðà# YØ# YØ# YØ#Ð%EØ#Ð%EØ#Ð%EØ# YØ  )Ø 	Ø  )ðÐð 	˜+˜¨Ð(9Ð:Ø�OÐ%5Ð6¸Ð8IÐJØ�/Ð" _Ð$5Ð6ðÐð €JØ€KØ)/ÐØÐØ ÐØ ÐØ€HØ0ÐØ#)ÐØ#ÐØ€LØ€IØ €LØ+,€LØ €LØ $ÐØ#'€OØ €NØ,/ÐØ€NØ$(€KØ%)ÐØ˜{¨G°XÐ>€MØ&-ÐØ'*ÐØÐØ"€OØ $ÐØÐØ "ÐØ€KØ>BÐõ(ò>÷ó ò÷_ … rB   r   c                   ó€   a € ] tR t^Ñt o RtRt^€tRt^€tRt	Rt
Rt^t^t^ tRt^t^t^t^tRtRtRtRtRtV 3R	 ltR
tV tR# )ÚGemma3nAudioConfiga“  
vocab_offset (`int`, *optional*, defaults to 262272):
    Offset between the tokenizer vocab index for the token ids embedded by `Gemma3nMultimodalEmbedder` and the
    0-indexed `Gemma3nMultimodalEmbedder.embedding` table.
input_feat_size (`int`, *optional*, defaults to 128):
    The number of channels in each mel-spectrogram frame.
gradient_clipping (`float`, *optional*, defaults to 10000000000.0):
    Clipping value used to stabilize extremely large gradient values.
conf_attention_chunk_size (`int`, *optional*, defaults to 12):
    The sub-sequence size for local attention processing inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_attention_context_left (`int`, *optional*, defaults to 13):
    The left context size of the local attention inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_attention_context_right (`int`, *optional*, defaults to 0):
    The right context size of the local attention inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_attention_logit_cap (`float`, *optional*, defaults to 50.0):
    Logit cap applied during local attention inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_num_attention_heads (`int`, *optional*, defaults to 8):
    The number of attention heads in local attention inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_num_hidden_layers (`int`, *optional*, defaults to 12):
    The number of layers that use local attention inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_conv_kernel_size (`int`, *optional*, defaults to 5):
    Convolution kernel size for the conformer block inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_reduction_factor (`int`, *optional*, defaults to 4):
    Reduction factor used in the conformer block inside the Conformer ("conf") section of the
    Universal Speech Model.
conf_residual_weight (`float`, *optional*, defaults to 0.5):
    Residual connection weight inside the Conformer ("conf") section of the
    Universal Speech Model.
sscp_conv_channel_size (`tuple(int, int)`, *optional*, defaults to `(128, 32)`):
    The channel sizes for the first and second convolutional layers in the Sub-sample Convolution Projection
    ("sscp") section of the Universal Speech Model.
sscp_conv_group_norm_eps (`float`, *optional*, defaults to 0.001):
    Epsilon used in group normalization in the subsample convolution projection in the Sub-sample Convolution
    Projection ("sscp") section of the Universal Speech Model.
sscp_conv_kernel_size (`tuple(tuple(int, int), tuple(int, int))`, *optional*, defaults to `((3, 3), (3, 3))`):
    Kernel sizes of the two convolutional layers in the subsample convolution projection  in the Sub-sample
    Convolution Projection ("sscp") section of the Universal Speech Model. The kernel sizes are specified as a
    tuple of height and width for each layer, where the height corresponds to the time dimension and the width
    corresponds to the frequency dimension.
sscp_conv_stride_size (`tuple(tuple(int, int), tuple(int, int))`, *optional*, defaults to `((2, 2), (2, 2))`):
    Stride sizes of the two convolutional layers in the subsample convolution projection in the Sub-sample
    Convolution Projection ("sscp") section of the Universal Speech Model. The stride sizes are specified as a
    tuple of height and width for each layer, where the height corresponds to the time dimension and the width
    corresponds to the frequency dimension.

Example:

```python
>>> from transformers import Gemma3nAudioConfig, Gemma3nAudioEncoder

>>> # Initializing a Gemma3nAudioEncoder gemma3n_audio-E4B-style configuration
>>> configuration = Gemma3nAudioConfig()

>>> # Initializing a model from the gemma3n_audio-E4B style configuration
>>> model = Gemma3nAudioEncoder(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```
Úgemma3n_audioi   r    g    _ Bg      I@g      à?gü©ñÒMbP?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[ ;R&   S[ ;R&   S[;R&   S[S[ ,          S[S[ S[ 3,          ,          ;R&   S[;R&   S[S[S[S[ S[ 3,          S[S[ S[ 3,          3,          ,          ;R&   S[S[S[S[ S[ 3,          S[S[ S[ 3,          3,          ,          ;R&   # )rE   rg   Úvocab_offsetÚinput_feat_sizer>   rm   Úgradient_clippingÚconf_attention_chunk_sizeÚconf_attention_context_leftÚconf_attention_context_rightÚconf_attention_logit_capÚconf_num_attention_headsÚconf_num_hidden_layersÚconf_conv_kernel_sizeÚconf_reduction_factorÚconf_residual_weightÚsscp_conv_channel_sizeÚsscp_conv_group_norm_epsÚsscp_conv_kernel_sizeÚsscp_conv_stride_size)r~   r€   r   Útuple)rJ   rK   s   "€r;   rL   ÚGemma3nAudioConfig.__annotate__Ñ   su  ø‡ ‚ ñR ÑñS ñT Ñ%ñU ñV ÑñW ñX ÑñY ñZ Ññ[ ñ\ Ñ/ñ] ñ^  #Ñ'ñ_ ñ` "%Ñ)ña ñb #&Ñ)ñc ñd $Ñ*ñe ñf "Ñ%ñg ñh  Ñ$ñi ñj Ñ"ñk ñl Ñ"ñm ñn  Ñ%ño ñp !¡�I©©c±3¨h­Õ7ÑCñq ñr $Ñ*ñs ñt  ¡%©©c±3¨h­¹¹sÁC¸x½Ð(HÕ"IÕIñ ñu ñ|  ¡%©©c±3¨h­¹¹sÁC¸x½Ð(HÕ"IÕIñ ò} rB   r)   Né€  )é€   é    )©é   rª   r©   )©rE   rE   r«   )r‚   rƒ   r„   r…   r†   r‡   rg   r”   r•   r>   rm   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r‹   rŒ   r�   )rK   s   @r;   r‘   r‘   Ñ   sŽ   ø‡ € ñBðH !€Jà€JØ%€LØ€OØ€KØ€LØ/ÐØ%'ÐØ')ÐØ()Ð Ø&*ÐØ$%ÐØ"$ÐØ!"ÐØ!"ÐØ"%ÐØ:CÐØ&*ÐðMÐðMÐ÷} ƒ rB   r‘   c                   ó”   a a€ ] tR tRt oRtRtRtRtRtRt	Rt
^€tR	tR
t]V3R lV 3R ll4       tV3R lV 3R lltV3R ltRtVtV ;t# )ÚGemma3nVisionConfigi5  a_  
architecture (`str`, *optional*, defaults to `"resnet50"`):
    The timm architecture to load.
do_pooling (`bool`, *optional*, defaults to `True`):
    Whether to do pooling for the last_hidden_state in `TimmWrapperModel` or not.
model_args (`dict[str, Any]`, *optional*):
    Additional keyword arguments to pass to the `timm.create_model` function. e.g. `model_args={"depth": 3}`
    for `timm/vit_base_patch32_clip_448.laion2b_ft_in12k_in1k` to create a model with 3 blocks. Defaults to `None`.
vocab_offset (`int`, *optional*, defaults to 262144):
    Offset between the tokenizer vocab index for the token ids embedded by `Gemma3nMultimodalEmbedder` and the
    0-indexed `Gemma3nMultimodalEmbedder.embedding` table.

Example:
```python
>>> from transformers import Gemma3nVisionConfig, TimmWrapper

>>> # Initializing a TimmWrapper gemma3n_vision-E4B-style configuration
>>> configuration = Gemma3nVisionConfig()

>>> # Initializing a gemma3n_vision-E4B-style TimmWrapper from the configuration
>>> model = TimmWrapper(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```
Úgemma3n_visionÚmobilenetv5_300m_encr   FNr   r$   r    c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# )rE   Úconfig_dictrG   )rJ   rK   s   "€r;   rL   Ú Gemma3nVisionConfig.__annotate___  s   ø€ ÷ (8ñ (8¡D©©c¨¥Nñ (8rB   c                ó  <€ VP                  4       pVP                  R 4      pRV9   ;'       g    RV9   pVfm   V'       ge   \        V R.4       \        V4      pV'       dE   \	        V4      pVP                  4       pVP                  RR7      pV U	u. uF  q˜V	,          NK  	  pp	Vej   V'       gb   \        \        V4      4      VR&   \        \        V4      4      \        V4      8X  d$   \        V4       U
Uu/ uF  w  r«WºbK	  	  upp
VR&   MRVR&   VP                  RR4      pVP                  RR4      pT;'       g    TVR&   R	V9   d(   RVR	,          9   d   VR	,          P                  RR4       \        SV `4  ! V3/ VB # u up	i u upp
i )
Úlabel_namesÚ
num_labelsÚid2labelNÚtimmT)Úas_dictÚlabel2idÚnum_classesÚpretrained_cfg)Úcopyr_   r
   r   r   r´   Úlabel_descriptionsrH   Ú	enumerater,   Úsetr\   r2   Ú	from_dict)Úclsr±   r5   r´   Úis_custom_modelÚimagenet_subsetÚdataset_infoÚsynsetsr½   Úsynsetr7   ÚnameÚnum_labels_in_kwargsÚnum_labels_in_dictr:   s   &&,           €r;   rÀ   ÚGemma3nVisionConfig.from_dict^  s‹  ø€ ð "×&Ñ&Ó(ˆà!—o‘o mÓ4ˆØ&¨&Ñ0×HÐH°JÀ&Ñ4Hˆð Ò§Ü˜c F 8Ô,Ü3°KÓ@ˆOßÜ+¨OÓ<�Ø&×2Ñ2Ó4�Ø%1×%DÑ%DÈTÐ%DÓ%RÐ"ÙHOÓPÉ¸f°&×9Ð9É�ÐPàÒ"¯?Ü!%¤i°Ó&<Ó!=ˆF�:Ñô ”3�{Ó#Ó$¬¨KÓ(8Ô8Ü=FÀ{Ô=SÔ%TÑ=S±'°! d¢gÑ=SÒ%T��zÒ"à%)��zÑ"ð
  &Ÿz™z¨,¸Ó=ÐØ(Ÿ_™_¨]¸DÓAÐð  4×IÐIÐ7Iˆˆ|Ñð ˜{Ô*¨}ÀÐL\Õ@]Ô/]ØÐ(Õ)×-Ñ-¨m¸TÔBä‰wÒ  Ñ7°Ñ7Ð7ùò3 Qùó &Us   ÂFÃ8F	c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# rD   rG   )rJ   rK   s   "€r;   rL   r²   ‰  s   ø€ ÷ ñ ™™c¡3˜h�ñ rB   c                ó
  <€ \         SV `  4       pVP                  R V P                  4       VP                  R\	        V P
                  P                  4       4      4       VP                  RR4       VP                  RR4       V# )rº   r´   r¶   Nr¹   )r2   rQ   r`   rµ   r   r¶   Úvaluesr\   rS   s   & €r;   rQ   ÚGemma3nVisionConfig.to_dict‰  sf   ø€ Ü‘‘Ó"ˆØ×Ñ˜-¨¯©Ô9Ø×Ñ˜-¬¨d¯m©m×.BÑ.BÓ.DÓ)EÔFØ�
‰
�:˜tÔ$Ø�
‰
�:˜tÔ$ØˆrB   c                óˆ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[R,          ;R&   S[;R&   S[;R&   S[;R&   S[;R	&   # )
rE   Úarchitecturerl   Ú
do_poolingNÚ
model_argsr>   rg   r”   rm   )rI   r€   r�   rH   r~   )rJ   rK   s   "€r;   rL   r²   5  s   ø‡ ‚ ñ> Ñ.ñ? ñB Ñ#ñC ñD ÑñE ñF �t•Ñ"ñG ñH ÑñI ñJ ÑñK ñL ÑñM ñN ÑòO rB   r)   )r‚   rƒ   r„   r…   r†   r‡   rÐ   rl   rÑ   rÒ   r>   rg   r”   rm   ÚclassmethodrÀ   rQ   r‹   rŒ   r�   rŽ   r�   s   @@r;   r­   r­   5  sd   ù‡ € ñð6 "€JØ.€Là#ÐØ€JØ"€JØ€KØ€JØ€LØ€Là÷(8ò (8ó ð(8÷Tó ÷i … rB   r­   c                   óŽ   a a€ ] tR tRt oRtRtR]R]R]/t	Rt
RtRt^¼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# )ÚGemma3nConfigi’  av  
audio_soft_tokens_per_image (`int`, *optional*, defaults to 188):
    The number of soft tokens per audio clip.
vision_soft_tokens_per_image (`int`, *optional*, defaults to 256):
    The number of soft tokens per image.
boi_token_id (`int`, *optional*, defaults to 255999):
    The begin-of-image token index to wrap the image prompt.
eoi_token_id (`int`, *optional*, defaults to 262144):
    The end-of-image token index to wrap the image prompt.
boa_token_id (`int`, *optional*, defaults to 256000):
    The begin-of-audio token index to wrap the audio prompt.
eoa_token_id (`int`, *optional*, defaults to 262272):
    The end-of-audio token index to wrap the audio prompt.

Example:

```python
>>> from transformers import Gemma3nForConditionalGeneration, Gemma3nConfig, Gemma3nTextConfig

>>> # Initializing a MobileNet vision config, which is loaded from TIMM
>>> vision_config = Gemma3nVisionConfig()

>>> # Initializing a Gemma3n Audio config
>>> audio_config = Gemma3nAudioConfig()

>>> # Initializing a Gemma3n Text config
>>> text_config = Gemma3nTextConfig()

>>> # Initializing a Gemma3n gemma-3-4b style configuration
>>> configuration = Gemma3nConfig(text_config, vision_config, audio_config)

>>> # Initializing a model from the gemma-3-4b style configuration
>>> model = Gemma3nTextConfig(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úgemma3nÚtext_configÚvision_configÚaudio_configNr   iÿç r$   i  i è r¦   i�  r   Tc                ó¶  <€ V P                   f&   \        4       V n         \        P                  R4       M:\	        V P                   \
        4      '       d   \        R/ V P                   B V n         \	        V P                  \
        4      '       d   \        R/ V P                  B V n        M2V P                  f%   \        4       V n        \        P                  R4       \	        V P                  \
        4      '       d   \        R/ V P                  B V n        M2V P                  f%   \        4       V n        \        P                  R4       \        SV `,  ! R/ VB  R # )NzAtext_config is None, using default Gemma3nTextConfig text config.zGvision_config is None, using default Gemma3nVisionConfig vision config.z7audio_config is None. Using default Gemma3nAudioConfig.r)   )r×   r   ÚloggerÚinfor*   rH   rØ   r­   rÙ   r‘   r2   r3   )r4   r5   r:   s   &,€r;   r3   ÚGemma3nConfig.__post_init__Ñ  sú   ø€ Ø×ÑÒ#Ü0Ó2ˆDÔÜ�K‰KÐ[Õ\Ü˜×(Ñ(¬$×/Ò/Ü0ÑD°4×3CÑ3CÑDˆDÔä�d×(Ñ(¬$×/Ò/Ü!4Ñ!J°t×7IÑ7IÑ!JˆDÕØ×ÑÒ'Ü!4Ó!6ˆDÔÜ�K‰KÐaÔbä�d×'Ñ'¬×.Ò.Ü 2Ñ G°T×5FÑ5FÑ GˆDÕØ×ÑÒ&Ü 2Ó 4ˆDÔÜ�K‰KÐQÔRä‰ÒÑ' Ô'rB   c                óê  <€ V ^8„  d   Qh/ S[ S[S[S[3,          ,          R,          ;R&   S[S[S[S[3,          ,          R,          ;R&   S[S[S[S[3,          ,          R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R	&   S[R,          ;R
&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[;R&   # )rE   Nr×   rØ   rÙ   Úaudio_soft_tokens_per_imageÚvision_soft_tokens_per_imageÚboi_token_idÚeoi_token_idÚimage_token_idÚboa_token_idÚeoa_token_idÚaudio_token_idrl   rr   rn   )	r   rH   rI   r   r­   r‘   r~   r€   r�   )rJ   rK   s   "€r;   rL   ÚGemma3nConfig.__annotate__’  s5  ø‡ ‚ ñ` #¡T©#©s¨(¥^Õ3°dÕ:ÑAña ñb '©©c±3¨h­Õ7¸$Õ>ÑEñc ñd %¡t©C±¨H¥~Õ5¸Õ<ÑCñe ñf "% t¥Ñ1ñg ñh #&¨¥*Ñ2ñi ñj ˜•*Ñ&ñk ñl ˜•*Ñ&ñm ñn ˜$•JÑ(ño ñp ˜•*Ñ&ñq ñr ˜•*Ñ&ñs ñt ˜$•JÑ(ñu ñv ˜t•|Ñ*ñw ñx  �Ñ+ñy ñz Ñò{ rB   )rÙ   r×   rØ   )r‚   rƒ   r„   r…   r†   r‡   r   r­   r‘   Úsub_configsr×   rØ   rÙ   rß   rà   rá   râ   rã   rä   rå   ræ   rl   rr   rn   r3   r‹   rŒ   r�   rŽ   r�   s   @@r;   rÕ   rÕ   ’  s…   ù‡ € ñ$ðL €JàÐ(ØÐ,ØÐ*ð€Kð >B€KØAE€MØ?C€LØ.1ÐØ/2Ð Ø&€LØ&€LØ!(€NØ&€LØ&€LØ!(€NØ&*ÐØ'+ÐØ€Iõ(÷ … rB   rÕ   N)r‘   rÕ   r   r­   )Úcollections.abcr   Útypingr   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   r	   r
   Ú	timm.datar   r   Ú
get_loggerr‚   rÛ   r   r‘   r­   rÕ   Ú__all__r)   rB   r;   Ú<module>rñ      s÷   ðõ* %Ý å .å 3ß RÓ Rñ ×Òß=à	×	Ò	˜HÓ	%€ñ Ð0Ô1ØôhÐ(ó hó ó 2ðhñV Ð0Ô1Øô_Ð)ó _ó ó 2ð_ñD Ð0Ô1ØôXÐ*ó Xó ó 2ðXñv Ð0Ô1ØôP(Ð$ó P(ó ó 2ðP(òf ^‚rB   