+
    œ°³j  ã                   ó  € R 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Mllama model configuration)Ústrict)ÚPreTrainedConfig)Úauto_docstringÚloggingzmeta-llama/Llama-3.2-11B-Vision)Ú
checkpointc                   ó°   a a€ ] tR t^t oRtRtRtRR/tRtRt	^ t
^t^t^tRtR	tR
t^tRt^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tRtVtV ;t# )ÚMllamaVisionConfigaV  
num_global_layers (`int`, *optional*, defaults to 8):
    Number of global layers in the Transformer encoder. Vision model has a second transformer encoder, called global.
vision_output_dim (`int`, *optional*, defaults to 7680):
    Dimensionality of the vision model output. Includes output of transformer
    encoder with intermediate layers and global transformer encoder.
max_num_tiles (`int`, *optional*, defaults to 4):
    Maximum number of tiles for image splitting.
intermediate_layers_indices (`list[int]`, *optional*, defaults to [3, 7, 15, 23, 30]):
    Indices of intermediate layers of transformer encoder from which to extract and output features.
    These output features are concatenated with final hidden state of transformer encoder.
supported_aspect_ratios (`list[list[int]]`, *optional*):
    List of supported aspect ratios for image splitting. If not specified, the default supported aspect ratios
    are [[1, 1], [1, 2], [1, 3], [1, 4], [2, 1], [2, 2], [3, 1], [4, 1]] for `max_num_tiles=4`.

Example:

```python
>>> from transformers import MllamaVisionConfig, MllamaVisionModel

>>> # Initializing a Llama config
>>> config = MllamaVisionConfig()

>>> # Initializing a vision model from the mllama-11b style configuration
>>> model = MllamaVisionModel(config)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úmllama_vision_modelÚvision_configÚnum_attention_headsÚattention_headsi   Úgelui   i   iÀ  çñhãˆµøä>Nç{®Gáz”?c           	     ó°   <€ V P                   f    ^^.^^.^^.^^.^^.^^.^^.^^..V n         V P                  f
   . ROV n        \        SV `  ! R/ VB  R # )N)é   é   é   é   é   © )Úsupported_aspect_ratiosÚintermediate_layers_indicesÚsuperÚ__post_init__©ÚselfÚkwargsÚ	__class__s   &,€Úp/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/mllama/configuration_mllama.pyr   Ú MllamaVisionConfig.__post_init__M   sv   ø€ Ø×'Ñ'Ò/Ø-.°¨F°Q¸°F¸QÀ¸FÀQÈÀFÈQÐPQÈFÐUVÐXYÐTZÐ]^Ð`aÐ\bÐefÐhiÐdjÐ+kˆDÔ(à×+Ñ+Ò3Ú/AˆDÔ,Ü‰ÒÑ' Ô'ó    c           
     ó”   € V P                   ^^.^^.^^.^^.^^.^^.^^.^^..8X  d   V P                  ^8w  d   \        R4      hR# R# )zOPart of `@strict`-powered validation. Validates the architecture of the config.z;max_num_tiles must be 4 for default supported aspect ratiosN)r   Úmax_num_tilesÚ
ValueError©r   s   &r   Úvalidate_architectureÚ(MllamaVisionConfig.validate_architectureU   sr   € ð ×(Ñ(¨a°¨V°a¸°V¸aÀ¸VÀaÈÀVÈaÐQRÈVÐVWÐYZÐU[Ð^_ÐabÐ]cÐfgÐijÐekÐ,lÔlØ×"Ñ" aÔ'äÐZÓ[Ð[ñ (ñ mr!   c                ó    <€ V ^8„  d   QhRS[ /# )é   Úreturn)Úint)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚMllamaVisionConfig.__annotate__^   s   ø€ ÷ 1ñ 1¡Sñ 1r!   c                ó,   € \        V P                  4      # )N)Úlenr   r%   s   &r   Úmax_aspect_ratio_idÚ&MllamaVisionConfig.max_aspect_ratio_id]   s   € ä�4×/Ñ/Ó0Ð0r!   c                ó¦  <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ S[S[ ,          ,          S[S[ S[ 3,          ,          ;R	&   S[ S[S[ ,          ,          S[S[ S[ 3,          ,          ;R
&   S[;R&   S[ ;R&   S[S[ ,          R,          ;R&   S[S[S[ ,          ,          R,          ;R&   S[;R&   # )r)   Úhidden_sizeÚ
hidden_actÚnum_hidden_layersÚnum_global_layersr   Únum_channelsÚintermediate_sizeÚvision_output_dimÚ
image_sizeÚ
patch_sizeÚnorm_epsr#   Nr   r   Úinitializer_range)r+   ÚstrÚlistÚtupleÚfloat)r,   r-   s   "€r   r.   r/      s&  ø‡ ‚ ñJ ÑñK ñL ÑñM ñN ÑñO ñP ÑñQ ñR ÑñS ñT ÑñU ñV Ñ!ñW ñX Ñ!ñY ñZ ‘d™3•i•¡%©©S¨¥/Õ1Ñ7ñ[ ñ\ ‘d™3•i•¡%©©S¨¥/Õ1Ñ6ñ] ñ^ Ññ_ ñ` Ñña ñb "&¡c¥¨TÕ!1Ñ8ñc ñd "¡$¡s¥)�_¨tÕ3Ñ:ñe ñf Ñ#òg r!   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚbase_config_keyÚattribute_mapr5   r6   r7   r8   r   r9   r:   r;   r<   r=   r>   r#   r   r   r?   r   r&   Úpropertyr2   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r   r-   s   @@r   r   r      sš   ù‡ € ñð< '€JØ%€OØ*Ð,=Ð>€Mà€KØ€JØÐØÐØ€OØ€LØ!ÐØ!ÐØ47€JØ46€JØ€HØ€MØ48ÐØ6:ÐØ#Ðõ(ò\ð ÷1ó ð1÷M … r!   r   c                   ó–   a a€ ] tR t^bt oR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	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# )ÚMllamaTextConfigaí  
cross_attention_layers (`list[int]`, *optional*):
    Indices of the cross attention layers. If not specified, will default to [3, 8, 13, 18, 23, 28, 33, 38].

Example:

```python
>>> from transformers import MllamaTextModel, MllamaTextConfig

>>> # Initializing a Mllama text config
>>> config = MllamaTextConfig()

>>> # Initializing a model from the Mllama text configuration
>>> model = MllamaTextModel(config)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úmllama_text_modelÚtext_configg    €„Aé õ i   Úsilui 8  Nr   i   r   TFg        i ô iô iô c                óV   <€ V P                   f
   . ROV n         \        SV `  ! R/ VB  R # )N)r   é   é   é   r   é   é!   é&   r   )Úcross_attention_layersr   r   r   s   &,€r   r   ÚMllamaTextConfig.__post_init__�   s'   ø€ Ø×&Ñ&Ò.Ú*HˆDÔ'Ü‰ÒÑ' Ô'r!   c                ój  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[R,          ;R	&   S[;R
&   S[ ;R&   S[;R&   S[;R&   S[;R&   S[S[ ,          R,          ;R&   S[S[ ,          ;R&   S[ ;R&   S[ S[S[ ,          ,          R,          ;R&   S[ R,          ;R&   # )r)   Ú
vocab_sizer5   r6   r7   r   Únum_key_value_headsr:   NÚrope_parametersÚrms_norm_epsÚmax_position_embeddingsr?   Ú	use_cacheÚtie_word_embeddingsr_   ÚdropoutÚbos_token_idÚeos_token_idÚpad_token_id)r+   r@   ÚdictrC   ÚboolrA   )r,   r-   s   "€r   r.   ÚMllamaTextConfig.__annotate__b   s)  ø‡ ‚ ñ4 Ññ5 ñ6 Ññ7 ñ8 Ññ9 ñ: Ññ; ñ< Ñ!ñ= ñ> Ñ ñ? ñ@ Ñ#ñA ñB ˜D•[Ñ'ñC ñD ÑñE ñF !Ñ*ñG ñH Ñ#ñI ñJ ÑñK ñL Ñ%ñM ñN !¡�I¨Õ,Ñ3ñO ñP ‘S�[ÑñQ ñR ÑñS ñT ™™S�	•/ DÕ(Ñ1ñU ñV ˜•*Ñ%òW r!   )r_   )rD   rE   rF   rG   rH   rI   rJ   Údefault_thetarb   r5   r6   r7   r   rc   r:   rd   re   rf   r?   rg   rh   r_   ri   rj   rk   rl   r   rM   rN   rO   rP   rQ   s   @@r   rS   rS   b   sŠ   ù‡ € ñð& %€JØ#€OØ€Mà€JØ€KØ€JØÐØ!ÐØ ÐØ#ÐØ#'€OØ€LØ#*ÐØ#ÐØ€IØ %ÐØ/3ÐØ€GØ€LØ+1€LØ%€Lõ(÷[ … r!   rS   c                   óf   a a€ ] tR t^•t oRtRtRR/tR]R]/t	Rt
RtRtV 3R	 ltV3R
 ltRtVtV ;t# )ÚMllamaConfiga\  
Example:

```python
>>> from transformers import MllamaForConditionalGeneration, MllamaConfig, MllamaVisionConfig, MllamaTextConfig

>>> # Initializing a CLIP-vision config
>>> vision_config = MllamaVisionConfig()

>>> # Initializing a Llama config
>>> text_config = MllamaTextConfig()

>>> # Initializing a mllama-11b style configuration
>>> configuration = MllamaConfig(vision_config, text_config)

>>> # Initializing a model from the mllama-11b style configuration
>>> model = MllamaForConditionalGeneration(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```ÚmllamaÚimage_token_idÚimage_token_indexrU   r
   NrV   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        \        SV `$  ! R/ VB  R # )Nz9vision_config is None, using default mllama vision configz5text_config is None, using default mllama text configr   )
r
   r   ÚloggerÚinfoÚ
isinstancerm   rU   rS   r   r   r   s   &,€r   r   ÚMllamaConfig.__post_init__¸   s­   ø€ Ø×ÑÒ%Ü!3Ó!5ˆDÔÜ�K‰KÐSÕTÜ˜×*Ñ*¬D×1Ò1Ü!3Ñ!I°d×6HÑ6HÑ!IˆDÔà×ÑÒ#Ü/Ó1ˆDÔÜ�K‰KÐOÕPÜ˜×(Ñ(¬$×/Ò/Ü/ÑC°$×2BÑ2BÑCˆDÔä‰ÒÑ' Ô'r!   c                óz   <€ V ^8„  d   Qh/ S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[;R&   # )r)   Nr
   rU   ru   )rm   r   r+   )r,   r-   s   "€r   r.   ÚMllamaConfig.__annotate__•   sF   ø‡ ‚ ñ> Ñ*Õ*¨TÕ1Ñ8ñ? ñ@ Ñ(Õ(¨4Õ/Ñ6ñA ñB Ñ#òC r!   )rU   r
   )rD   rE   rF   rG   rH   rI   rK   rS   r   Úsub_configsr
   rU   ru   r   rM   rN   rO   rP   rQ   s   @@r   rr   rr   •   sM   ù‡ € ñð, €JàÐ-ð€Mð !Ð"2°OÐEWÐX€Kà48€MØ26€KØ#Ðõ(÷G … r!   rr   N)rr   rS   r   )rH   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   Ú
get_loggerrD   rw   r   rS   rr   Ú__all__r   r!   r   Ú<module>rƒ      s±   ðñ !å .å 3ß ,ð 
×	Ò	˜HÓ	%€ñ Ð<Ô=ØôE1Ð)ó E1ó ó >ðE1ñP Ð<Ô=Øô.(Ð'ó .(ó ó >ð.(ñb Ð<Ô=Øô.(Ð#ó .(ó ó >ð.(òb E‚r!   