+
    œ°³j>‰  ã                   ó  € R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
Ht ^RIHt ^RIHtHt ^RIHtHtHtHtHtHtHtHtHtHt ^RIHtHtHt ]! 4       '       d   ^R	I H!t! ]PD                  ! ]#4      t$]! R
4      t%]&]']
,          R,          ]']
,          R,          3,          t(Rt)Rt*Rt+R t, ! R R4      t- ! R R]-4      t.RR R llt/RR R llt0R t1R t2R t3 ! R R]]'],          ](3,          4      t4R.t5R# )z-Factory function to build auto-model classes.N)ÚOrderedDict)ÚIterator)ÚAnyÚTypeVar©ÚPreTrainedConfig)Úget_class_from_dynamic_moduleÚresolve_trust_remote_code)
ÚCONFIG_NAMEÚcached_fileÚ	copy_funcÚextract_commit_hashÚfind_adapter_config_fileÚhf_apiÚis_peft_availableÚis_torch_availableÚloggingÚrequires_backends)Ú
AutoConfigÚmodel_type_to_module_nameÚ!replace_list_option_in_docstrings)ÚGenerationMixinÚ_TaJ  
    This is a generic model class that will be instantiated as one of the model classes of the library when created
    with the [`~BaseAutoModelClass.from_pretrained`] class method or the [`~BaseAutoModelClass.from_config`] class
    method.

    This class cannot be instantiated directly using `__init__()` (throws an error).
aù  
        Instantiates one of the model classes of the library from a configuration.

        Note:
            Loading a model from its configuration file does **not** load the model weights. It only affects the
            model's configuration. Use [`~BaseAutoModelClass.from_pretrained`] to load the model weights.

        Args:
            config ([`PreTrainedConfig`]):
                The model class to instantiate is selected based on the configuration class:

                List options
            attn_implementation (`str`, *optional*):
                The attention implementation to use in the model (if relevant). Can be any of `"eager"` (manual implementation of the attention), `"sdpa"` (using [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (using [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), or `"flash_attention_3"` (using [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)). By default, if available, SDPA will be used for torch>=2.1.1. The default is otherwise the manual `"eager"` implementation.

        Examples:

        ```python
        >>> from transformers import AutoConfig, BaseAutoModelClass

        >>> # Download configuration from huggingface.co and cache.
        >>> config = AutoConfig.from_pretrained("checkpoint_placeholder")
        >>> model = BaseAutoModelClass.from_config(config)
        ```
a™  
        Instantiate one of the model classes of the library from a pretrained model.

        The model class to instantiate is selected based on the `model_type` property of the config object (either
        passed as an argument or loaded from `pretrained_model_name_or_path` if possible), or when it's missing, by
        falling back to using pattern matching on `pretrained_model_name_or_path`:

        List options

        The model is set in evaluation mode by default using `model.eval()` (so for instance, dropout modules are
        deactivated). To train the model, you should first set it back in training mode with `model.train()`

        Args:
            pretrained_model_name_or_path (`str` or `os.PathLike`):
                Can be either:

                    - A string, the *model id* of a pretrained model hosted inside a model repo on huggingface.co.
                    - A path to a *directory* containing model weights saved using
                      [`~PreTrainedModel.save_pretrained`], e.g., `./my_model_directory/`.
            model_args (additional positional arguments, *optional*):
                Will be passed along to the underlying model `__init__()` method.
            config ([`PreTrainedConfig`], *optional*):
                Configuration for the model to use instead of an automatically loaded configuration. Configuration can
                be automatically loaded when:

                    - The model is a model provided by the library (loaded with the *model id* string of a pretrained
                      model).
                    - The model was saved using [`~PreTrainedModel.save_pretrained`] and is reloaded by supplying the
                      save directory.
                    - The model is loaded by supplying a local directory as `pretrained_model_name_or_path` and a
                      configuration JSON file named *config.json* is found in the directory.
            state_dict (*dict[str, torch.Tensor]*, *optional*):
                A state dictionary to use instead of a state dictionary loaded from saved weights file.

                This option can be used if you want to create a model from a pretrained configuration but load your own
                weights. In this case though, you should check if using [`~PreTrainedModel.save_pretrained`] and
                [`~PreTrainedModel.from_pretrained`] is not a simpler option.
            cache_dir (`str` or `os.PathLike`, *optional*):
                Path to a directory in which a downloaded pretrained model configuration should be cached if the
                standard cache should not be used.
            force_download (`bool`, *optional*, defaults to `False`):
                Whether or not to force the (re-)download of the model weights and configuration files, overriding the
                cached versions if they exist.
            proxies (`dict[str, str]`, *optional*):
                A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
                'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
            output_loading_info(`bool`, *optional*, defaults to `False`):
                Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.
            local_files_only(`bool`, *optional*, defaults to `False`):
                Whether or not to only look at local files (e.g., not try downloading the model).
            revision (`str`, *optional*, defaults to `"main"`):
                The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
                git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
                identifier allowed by git.
            trust_remote_code (`bool`, *optional*, defaults to `False`):
                Whether or not to allow for custom models defined on the Hub in their own modeling files. This option
                should only be set to `True` for repositories you trust and in which you have read the code, as it will
                execute code present on the Hub on your local machine.
            code_revision (`str`, *optional*, defaults to `"main"`):
                The specific revision to use for the code on the Hub, if the code leaves in a different repository than
                the rest of the model. It can be a branch name, a tag name, or a commit id, since we use a git-based
                system for storing models and other artifacts on huggingface.co, so `revision` can be any identifier
                allowed by git.
            kwargs (additional keyword arguments, *optional*):
                Can be used to update the configuration object (after it being loaded) and initiate the model (e.g.,
                `output_attentions=True`). Behaves differently depending on whether a `config` is provided or
                automatically loaded:

                    - If a configuration is provided with `config`, `**kwargs` will be directly passed to the
                      underlying model's `__init__` method (we assume all relevant updates to the configuration have
                      already been done)
                    - If a configuration is not provided, `kwargs` will be first passed to the configuration class
                      initialization function ([`~PreTrainedConfig.from_pretrained`]). Each key of `kwargs` that
                      corresponds to a configuration attribute will be used to override said attribute with the
                      supplied `kwargs` value. Remaining keys that do not correspond to any configuration attribute
                      will be passed to the underlying model's `__init__` function.

        Examples:

        ```python
        >>> from transformers import AutoConfig, BaseAutoModelClass

        >>> # Download model and configuration from huggingface.co and cache.
        >>> model = BaseAutoModelClass.from_pretrained("checkpoint_placeholder")

        >>> # Update configuration during loading
        >>> model = BaseAutoModelClass.from_pretrained("checkpoint_placeholder", output_attentions=True)
        >>> model.config.output_attentions
        True
        ```
c                 ó   € V\        V 4      ,          p\        V\        \        34      '       g   V# V Uu/ uF  q3P                  VbK  	  pp\        V R . 4      pV F  pWd9   g   K  WF,          u # 	  V^ ,          # u upi )Úarchitectures)ÚtypeÚ
isinstanceÚlistÚtupleÚ__name__Úgetattr)ÚconfigÚmodel_mappingÚsupported_modelsÚmodelÚname_to_modelr   Úarchs   &&     Úf/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/auto/auto_factory.pyÚ_get_model_classr(   ²   s€   € Ø$¤T¨&£\Õ2ÐÜÐ&¬¬u¨×6Ò6ØÐá8HÓIÑ8H¨u—^‘^ UÒ*Ñ8H€MÐIÜ˜F O°RÓ8€MÛˆØÖ Ø Õ&Ò&ñ ð ˜AÕÐùò Js   µA;c                   óž   a € ] tR t^Ât o RtV 3R lR lt]R 4       t]V 3R lR l4       t]V 3R lR l4       t	]RV 3R	 lR
 ll4       t
RtV tR# )Ú_BaseAutoModelClassNc                ó   <€ V ^8„  d   QhRR/# ©é   ÚreturnN© )ÚformatÚ__classdict__s   "€r'   Ú__annotate__Ú _BaseAutoModelClass.__annotate__Æ   s   ø€ ÷ 
ñ 
¨4ñ 
ó    c                ó¢   € \        V P                  P                   R V P                  P                   RV P                  P                   R24      h)z+ is designed to be instantiated using the `z5.from_pretrained(pretrained_model_name_or_path)` or `z.from_config(config)` methods.)ÚOSErrorÚ	__class__r   )ÚselfÚargsÚkwargss   &*,r'   Ú__init__Ú_BaseAutoModelClass.__init__Æ   sR   € ÜØ�~‰~×&Ñ&Ð'ð (ØŸ.™.×1Ñ1Ð2ð 3Ø—‘×'Ñ'Ð(Ð(FðHó
ð 	
r4   c                óæ  € VP                  R R4      p\        VR4      ;'       d    V P                  VP                  9   p\	        V4      V P
                  9   pT;'       d4    \        WP
                  4      P                  P                  R4      '       * pV'       dX   VP                  V P                  ,          pRV9   d   VP                  R4      ^ ,          pMRp\        W1P                  WTVR7      pV'       d¤   V'       dœ   V'       g”   RX9   d   VP                  R4      w  r—MVP                  p	\        Wy3/ VB p
V P                  VP                  V
RR7       V
P!                  V R7       VP                  R	R4      p\#        V
4      p
V
P$                  ! V3/ VB # V'       d„   \        WP
                  4      p
VP&                  P)                  R
R4      pVe<   \+        V
RR4      V8X  d*   TpVP-                  4       p\+        VRR4      pVe   Wán        V
P$                  ! V3/ VB # \1        RVP                   RV P                   RRP3                  R V P
                   4       4       R24      h)Útrust_remote_codeNÚauto_mapútransformers.ú--©Úupstream_repoT©Úexist_ok©Ú
auto_classÚcode_revisionÚtext_configÚconfig_classÚquantization_configú!Unrecognized configuration class ú for this kind of AutoModel: ú.
Model type should be one of ú, c              3   ó8   "  € T F  qP                   x € K  	  R # 5i©N©r   ©Ú.0Úcs   & r'   Ú	<genexpr>Ú2_BaseAutoModelClass.from_config.<locals>.<genexpr>ü   ó   é € Ð4\ÑI[ÀA·Z¶ZÓI[ùó   ‚Ú.)ÚpopÚhasattrr   r?   r   Ú_model_mappingr(   Ú
__module__Ú
startswithÚsplitr	   Ú_name_or_pathÚname_or_pathr   Úregisterr7   Úregister_for_auto_classÚ$add_generation_mixin_to_remote_modelÚ_from_configÚsub_configsÚgetr    Úget_text_configrK   Ú
ValueErrorÚjoin)Úclsr!   r:   r>   Úhas_remote_codeÚhas_local_codeÚexplicit_local_codeÚ	class_refrC   Úrepo_idÚmodel_classÚ_Útext_config_classÚparent_configÚparent_quants   &&,            r'   Úfrom_configÚ_BaseAutoModelClass.from_configÍ   sF  € à"ŸJ™JÐ':¸DÓAÐÜ! &¨*Ó5×YÐY¸#¿,¹,È&Ï/É/Ñ:YˆÜ˜f›¨×);Ñ);Ñ;ˆØ,÷ 1ð 1Ô5EØ×&Ñ&ó6
ç
‰*—Z‘Z Ó0ô21Ð÷ ØŸ™¨¯©Õ5ˆIØ�yÔ Ø )§¡°Ó 5°aÕ 8‘à $�Ü 9Ø!×#7Ñ#7¸Ðhuô!Ð÷ ×0×9LØ�yÔ Ø%.§_¡_°TÓ%:Ñ"�˜à ×-Ñ-�Ü7¸	ÑUÈfÑUˆKØ�L‰L˜×)Ñ)¨;ÀˆLÔFØ×/Ñ/¸3Ð/Ô?Ø—
‘
˜?¨DÓ1ˆAÜ>¸{ÓKˆKØ×+Ò+¨FÑ=°fÑ=Ð=ßÜ*¨6×3EÑ3EÓFˆKØ &× 2Ñ 2× 6Ñ 6°}ÀdÓ KÐà Ò,´¸ÀnÐVZÓ1[Ð_pÔ1pð !'�Ø×/Ñ/Ó1�ô  ' }Ð6KÈTÓR�ØÒ+Ø1=Ô.Ø×+Ò+¨FÑ=°fÑ=Ð=äØ/°×0@Ñ0@Ð/AÐA^Ð_b×_kÑ_kÐ^lð m+Ø+/¯9©9Ñ4\È×I[ÒI[Ó4\Ó+\Ð*]Ð]^ð`ó
ð 	
r4   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# )r-   r!   r.   r   )r0   r1   s   "€r'   r2   r3      s   ø€ ÷ ñ Ñ4Dð ÑIYñ r4   c                ó   € V# )z`Additional autoclass-specific config post-loading manipulation. May be overridden in subclasses.r/   )rl   r!   s   &&r'   Ú_prepare_config_for_auto_classÚ2_BaseAutoModelClass._prepare_config_for_auto_classÿ   s	   € ð ˆr4   c                óT   <€ V ^8„  d   QhRS[ S[P                  S[ ,          ,          /# )r-   Úpretrained_model_name_or_path)ÚstrÚosÚPathLike)r0   r1   s   "€r'   r2   r3     s%   ø€ ÷ S
ñ S
¹CÁ"Ç+Á+ÉcÕBRÕ<Rñ S
r4   c                óÄ
  € VP                  R R4      pVP                  R4      pRVR&   . R%OpV Uu/ uF  qwV9   g   K  WsP                  V4      bK  	  ppVP                  RR4      p	VP                  RR4      p
VP                  RR4      pVP                  RR4      pVe   WÈR&   V
fG   \        V\        4      '       g$   \	        V\
        3R	R
RR
RR
/VB p\        WÚ4      p
M\        VRR4      p
\        4       '       dß   Vf   / pVP                  4       pVe   WËR&   \        V3RV
/VB pVe¯   \        VRRR7      ;_uu_ 4       p\        P                  ! V4      pWR&   \        P                  P!                  V4      '       dH   \        P                  P!                  \        P                  P#                  V\
        4      4      '       g
   VR,          pRRR4       \        V\        4      '       Eg
   \        P$                  ! V4      pVP                  R4      R8X  d   VP                  R4      pVP                  R4      R8X  d   VP                  R4      pVP                  R4      e   VP                  R4      p\&        P(                  ! V3RRRV	RV
/VBVB w  rCVP                  RR4      e   VR,          VR&   VP                  RR4      e   VR,          VR&   VP                  RR4      e   VR,          VR&   \+        VR4      ;'       d    V P,                  VP.                  9   p\1        V4      V P2                  9   pT;'       d4    \5        W@P2                  4      P6                  P9                  R4      '       * pRpV'       d=   VP.                  V P,                  ,          pRV9   d   VP;                  R4      ^ ,          p\=        VVVVVR7      pWSR&   W³R&   V'       d‰   V'       d�   V'       gy   \?        XV3RV	/VBVB pVP                  RR4      pV PA                  VPB                  VRR7       VPE                  V R7       \G        V4      pVP(                  ! V.VO5R V/VBVB # V'       dŒ   \5        W@P2                  4      pVPH                  P                  RR4      pVe=   \        VRR4      V8X  d+   TpVPK                  4       p\        VRR4      pVe   VVn&        VP(                  ! V.VO5R V/VBVB # \O        RVPB                   R V P,                   R!R"P#                  R# V P2                   4       4       R$24      hu upi   + '       g   i     EL‚; i)&r!   Nr>   TÚ
_from_autoÚtokenrH   Ú_commit_hashÚadapter_kwargsÚ _raise_exceptions_for_gated_repoFÚ%_raise_exceptions_for_missing_entriesÚ'_raise_exceptions_for_connection_errorsÚrzutf-8)ÚencodingÚ_adapter_model_pathÚbase_model_name_or_pathÚtorch_dtypeÚautoÚdtyperK   Úreturn_unused_kwargsr?   r@   rA   rB   rD   rF   rI   rJ   rL   rM   rN   rO   c              3   ó8   "  € T F  qP                   x € K  	  R # 5irQ   rR   rS   s   & r'   rV   Ú6_BaseAutoModelClass.from_pretrained.<locals>.<genexpr>—  rX   rY   rZ   )Ú	cache_dirÚforce_downloadÚlocal_files_onlyÚproxiesÚrevisionÚ	subfolderr„   )(r[   rh   r   r   r   r
   r   r    r   Úcopyr   ÚopenÚjsonÚloadr€   ÚpathÚexistsrk   Údeepcopyr   Úfrom_pretrainedr\   r   r?   r   r]   r(   r^   r_   r`   r	   r   rc   r7   rd   re   rg   ri   rK   rj   )rl   r~   Ú
model_argsr:   r!   r>   Úhub_kwargs_namesÚnameÚ
hub_kwargsrH   Úcommit_hashr†   r„   Úresolved_config_fileÚmaybe_adapter_pathÚfÚadapter_configÚkwargs_origrs   rm   rn   ro   rC   rp   rr   rt   ru   rv   s   &&*,                        r'   r¡   Ú#_BaseAutoModelClass.from_pretrained  s®  € à—‘˜H dÓ+ˆØ"ŸJ™JÐ':Ó;ÐØ#ˆˆ|Ñò
Ðñ :JÓ\Ñ9I°ÐU[É^Ô,�dŸJ™J tÓ,Ò,Ñ9Iˆ
Ð\ØŸ
™
 ?°DÓ9ˆØ—j‘j °Ó6ˆØŸ™Ð$4°dÓ;ˆà—‘˜w¨Ó-ˆàÒØ"'�wÑàÒÜ˜fÔ&6×7Ò7ä'2Ø1Üñ(ð 6;ð(ð ;@ð	(ð
 =Bð(ð !ñ(Ð$ô 2Ð2FÓT‘ä% f¨n¸dÓC�ä×ÒØÒ%Ø!#�Ø+×0Ñ0Ó2ˆNØÒ Ø*/˜wÑ'ä!9Ø-ñ"Ø<Gð"ØKYñ"Ðð "Ò-ÜÐ,¨c¸G×DÕDÈÜ%)§Y¢Y¨q£\�Nà<YÐ#8Ñ9ô
 Ÿ7™7Ÿ>™>Ð*G×HÒHÔPR×PWÑPW×P^ÑP^ÜŸ™Ÿ™Ð%BÄKÓP÷Qò Qð 9GÐG`Õ8aÐ5÷ Eô ˜&Ô"2×3Ó3ÜŸ-š-¨Ó/ˆKð �z‰z˜-Ó(¨FÔ2Ø—J‘J˜}Ó-�Ø�z‰z˜'Ó" fÔ,Ø—J‘J˜wÓ'�à�z‰zÐ/Ó0Ò<Ø—J‘JÐ4Ó5�ä'×7Ò7Ø-ñà%)ðð ,ðð )ð	ð
 ðð ñ‰NˆFð �‰˜}¨dÓ3Ò?Ø(3°MÕ(B��}Ñ%Ø�‰˜w¨Ó-Ò9Ø"-¨gÕ"6��w‘Ø�‰Ð4°dÓ;ÒGØ0;Ð<QÕ0R�Ð,Ñ-ä! &¨*Ó5×YÐY¸#¿,¹,È&Ï/É/Ñ:YˆÜ˜f›¨×);Ñ);Ñ;ˆØ,÷ 1ð 1Ô5EØ×&Ñ&ó6
ç
‰*—Z‘Z Ó0ô21Ðð ˆßØŸ™¨¯©Õ5ˆIØ�yÔ Ø )§¡°Ó 5°aÕ 8�Ü5ØØ)ØØØ'ô
Ðð '8Ð"Ñ#ð $2ÐÑ ç×0×9LÜ7ØÐ8ñØHUðØYcðØgmñˆKð —‘˜°Ó5ˆAØ�L‰L˜×)Ñ)¨;ÀˆLÔFØ×/Ñ/¸3Ð/Ô?Ü>¸{ÓKˆKØ×.Ò.Ø-ðØ0:òØCIðØMWðØ[añð ÷ Ü*¨6×3EÑ3EÓFˆKØ &× 2Ñ 2× 6Ñ 6°}ÀdÓ KÐà Ò,´¸ÀnÐVZÓ1[Ð_pÔ1pð !'�Ø×/Ñ/Ó1�ô  ' }Ð6KÈTÓR�ØÒ+Ø1=�FÔ.Ø×.Ò.Ø-ðØ0:òØCIðØMWðØ[añð ô Ø/°×0@Ñ0@Ð/AÐA^Ð_b×_kÑ_kÐ^lð m+Ø+/¯9©9Ñ4\È×I[ÒI[Ó4\Ó+\Ð*]Ð]^ð`ó
ð 	
ùòG ]÷J E×DÐDús   ±U	¾U	ÅBUÇ	UÕU	c                ó   <€ V ^8„  d   QhRR/# r,   r/   )r0   r1   s   "€r'   r2   r3   ›  s   ø€ ÷ Rñ RÀDñ Rr4   c                óæ   € \        VR4      '       dB   VP                  P                  VP                  8w  d   \        RVP                   RV R24      hV P                  P                  WVR7       R# )zÞ
Register a new model for this class.

Args:
    config_class ([`PreTrainedConfig`]):
        The configuration corresponding to the model to register.
    model_class ([`PreTrainedModel`]):
        The model to register.
rJ   z‚The model class you are passing has a `config_class` attribute that is not consistent with the config class you passed (model has z and you passed z!. Fix one of those so they match!rD   N)r\   rJ   r   rj   r]   rc   )rl   rJ   rr   rE   s   &&&&r'   rc   Ú_BaseAutoModelClass.registerš  sx   € ô �; ×/Ò/°K×4LÑ4L×4UÑ4UÐYe×YnÑYnÔ4nÜð6Ø6A×6NÑ6NÐ5OÐO_Ð`lÐ_mð n.ð.óð ð
 	×Ñ×#Ñ# LÈÐ#ÖQr4   r/   ©F)r   r^   Ú__qualname__Ú__firstlineno__r]   r;   Úclassmethodrw   r{   r¡   rc   Ú__static_attributes__Ú__classdictcell__©r1   s   @r'   r*   r*   Â   sp   ø‡ € à€N÷
ð 
ð ñ/
ó ð/
ðb ÷ó ðð ÷S
ó ðS
ðj ÷Rñ Ró öRr4   r*   c                   óV   a a€ ] tR tRt oRt]V 3R l4       t]V 3R l4       tRtVt	V ;t
# )Ú_BaseAutoBackboneClassi®  Nc                óæ  <€ \        V R R.4       ^RIHp VP                  RV! 4       4      pVP	                  R4      e   \        R4      hVP	                  RR4      '       d   \        R	4      hVP                  R
VP                  4      pVP                  RVP                  4      pVP                  RVP                  4      pV! VVVVR7      pVP                  RR4       \        S	V `(  ! V3RR/VB # )ÚvisionÚtimm)ÚTimmBackboneConfigr!   Úout_featuresNz0Cannot specify `out_features` for timm backbonesÚoutput_loading_infoFz@Cannot specify `output_loading_info=True` when loading from timmÚnum_channelsÚfeatures_onlyÚout_indices)Úbackboner¿   rÀ   rÁ   Úuse_pretrained_backboneÚ
pretrainedT)r   Úmodels.timm_backboner¼   r[   rh   rj   r¿   rÀ   rÁ   Úsuperrw   )
rl   r~   r¢   r:   r¼   r!   r¿   rÀ   rÁ   r7   s
   &&*,     €r'   Ú#_load_timm_backbone_from_pretrainedÚ:_BaseAutoBackboneClass._load_timm_backbone_from_pretrained²  så   ø€ ä˜# ¨&Ð1Ô2Ý>à—‘˜HÑ&8Ó&:Ó;ˆà�:‰:�nÓ%Ò1ÜÐOÓPÐPà�:‰:Ð+¨U×3Ò3ÜÐ_Ó`Ð`à—z‘z .°&×2EÑ2EÓFˆØŸ
™
 ?°F×4HÑ4HÓIˆØ—j‘j °×0BÑ0BÓCˆÙ#Ø2Ø%Ø'Ø#ô	
ˆð 	�
‰
Ð,¨dÔ3Ü‰wÒ" 6ÑE°dÐE¸fÑEÐEr4   c                óº   <€ VP                  R R4       \        4       P                  V4      '       g   V P                  ! V.VO5/ VB # \        SV `  ! V.VO5/ VB # )Úuse_timm_backboneN)r[   r   Úrepo_existsrÇ   rÆ   r¡   )rl   r~   r¢   r:   r7   s   &&*,€r'   r¡   Ú&_BaseAutoBackboneClass.from_pretrainedÌ  s`   ø€ à�
‰
Ð&¨Ô-Ü‹x×#Ñ#Ð$A×BÒBØ×:Ò:Ð;XÐpÐ[eÒpÐioÑpÐpä‰wÒ&Ð'DÐ\ÀzÒ\ÐU[Ñ\Ð\r4   r/   )r   r^   r±   r²   r]   r³   rÇ   r¡   r´   rµ   Ú__classcell__)r7   r1   s   @@r'   r¸   r¸   ®  s:   ù‡ € à€NàôFó ðFð2 ô]ó ÷]ð ]r4   r¸   c                ó$   € V ^8„  d   QhR\         /# )r-   Úhead_doc©r   )r0   s   "r'   r2   r2   Õ  s   € ÷ ñ ¬ñ r4   c                 ór   € \        V4      ^ 8”  d   V P                  RRV R24      # V P                  RR4      # )é    z(one of the model classes of the library z0one of the model classes of the library (with a z head) z-one of the base model classes of the library )ÚlenÚreplace)Ú	docstringrÏ   s   &&r'   Úinsert_head_docrÖ   Õ  sK   € Ü
ˆ8ƒ}�qÔØ× Ñ Ø6Ø>¸x¸jÈÐPó
ð 	
ð ×ÑØ2Ð4cóð r4   c                ó0   € V ^8„  d   QhR\         R\         /# )r-   Úcheckpoint_for_examplerÏ   rÐ   )r0   s   "r'   r2   r2   à  s   € ÷ ñ ´3ð Ôbeñ r4   c                 ó  € V P                   pV P                  p\        \        VR 7      pVP	                  RV4      V n        \        \        P                  4      p\        \        VR 7      pVP	                  RV4      pVP	                  RV4      pWvn        \        VP                   RR7      ! V4      p\        V4      V n        \        p\        \        P                  4      p	\        W‚R 7      pVP	                  RV4      pVP	                  RV4      pVP                  R4      R,          P                  R4      ^ ,          p
VP	                  RV
4      pW‰n        \        VP                   4      ! V	4      p	\        V	4      V n        V # )	)rÏ   ÚBaseAutoModelClassÚcheckpoint_placeholderF)Úuse_model_typesÚ/Ú-Úshortcut_placeholderéÿÿÿÿ)r]   r   rÖ   ÚCLASS_DOCSTRINGrÔ   Ú__doc__r   r*   rw   ÚFROM_CONFIG_DOCSTRINGr   r³   ÚFROM_PRETRAINED_TORCH_DOCSTRINGr¡   r`   )rl   rØ   rÏ   r"   r¤   Úclass_docstringrw   Úfrom_config_docstringÚfrom_pretrained_docstringr¡   Úshortcuts   &&&        r'   Úauto_class_updateré   à  sb  € à×&Ñ&€MØ�<‰<€DÜ%¤oÀÔI€OØ!×)Ñ)Ð*>ÀÓE€C„Kô Ô/×;Ñ;Ó<€KÜ+Ô,AÈHÔUÐØ1×9Ñ9Ð:NÐPTÓUÐØ1×9Ñ9Ð:RÐTjÓkÐØ/ÔÜ3°M×4PÑ4PÐbgÕhÐitÓu€KÜ! +Ó.€C„Oä ?ÐÜÔ 3× CÑ CÓD€OÜ /Ð0IÔ ]ÐØ 9× AÑ AÐBVÐX\Ó ]ÐØ 9× AÑ AÐBZÐ\rÓ sÐØ%×+Ñ+¨CÓ0°Õ4×:Ñ:¸3Ó?ÀÕB€HØ 9× AÑ AÐBXÐZbÓ cÐØ7ÔÜ7¸×8TÑ8TÔUÐVeÓf€OÜ% oÓ6€CÔØ€Jr4   c                 óº   € . pV P                  4        FD  p\        V\        \        34      '       d   V\        V4      ,          pK3  VP	                  V4       KF  	  V# rQ   )Úvaluesr   r   r   Úappend)r"   Úresultr$   s   &  r'   Ú
get_valuesrî   þ  sL   € Ø€FØ×%Ñ%Ö'ˆÜ�eœd¤E˜]×+Ò+Ø”d˜5“kÕ!ŠFà�M‰M˜%Ö ñ	 (ð €Mr4   c           
      ó0  a € Vf   R # \        V\        4      '       d3   \        ;QJ d    . V 3R lV 4       F  NK  	  5# ! V 3R lV 4       4      # \        V\        4      '       d0   VP                  4        UUu/ uF  w  r#V\	        S V4      bK  	  upp# \        S V4      '       d   \        S V4      # \        P                  ! R4      pS V8w  d    \	        WA4      # \        RV RV R24      hu uppi   \         d    \        RT RS  RT R24      hi ; i)Nc              3   ó<   <"  € T F  p\        SV4      x € K  	  R # 5irQ   )Úgetattribute_from_module)rT   ÚaÚmodules   & €r'   rV   Ú+getattribute_from_module.<locals>.<genexpr>  s   øé € ÐGÁ$¸QÔ-¨f°a×8Ð8Ã$ùs   ƒÚtransformerszCould not find z neither in z nor in Ú!z in )
r   r   ÚdictÚitemsrñ   r\   r    Ú	importlibÚimport_modulerj   )ró   ÚattrÚkÚvÚtransformers_modules   f&   r'   rñ   rñ   	  s  ø€ Ø‚|ÙÜ�$œ×ÒßŒuÔGÁ$ÓG�uÐGˆuÔGÁ$ÓGÓGÐGÜ�$œ×ÒØCGÇ:Á:Ä<ÔPÁ<¹4¸1�Ô+¨F°AÓ6Ò6Á<ÒPÐPÜˆv�t×ÒÜ�v˜tÓ$Ð$ô $×1Ò1°.ÓAÐàÐ$Ô$ð	iÜ+Ð,?ÓFÐFô ˜?¨4¨&°Ð5HÐ4IÈÐKÓLÐLùó Qøô ô 	iÜ˜¨t¨f°LÀÀÈÐQdÐPeÐefÐgÓhÐhð	iús   Á9C.Ã
C4 Ã4!Dc                óœ  € R\        V P                  4      9  d   V # R\        V P                  4      9   d   V # \        V R4      ;'       d    R\        \	        V R4      4      9  p\        V R4      ;'       d    R\        \	        V R4      4      9  pV'       g	   V'       d,   \        V P                  V \        3/ V P                  C4      pV# V # )a•  
Adds `GenerationMixin` to the inheritance of `model_class`, if `model_class` is a PyTorch model.

This function is used for backwards compatibility purposes: in v4.45, we've started a deprecation cycle to make
`PreTrainedModel` stop inheriting from `GenerationMixin`. Without this function, older models dynamically loaded
from the Hub may not have the `generate` method after we remove the inheritance.
ztorch.nn.modules.module.Moduler   ÚgenerateÚprepare_inputs_for_generation)	r   Ú__mro__Ú	__bases__r\   r    r   r   r   Ú__dict__)rr   Úhas_custom_generate_in_classÚhas_custom_prepare_inputsÚ!model_class_with_generation_mixins   &   r'   re   re     sã   € ð (¬s°;×3FÑ3FÓ/GÔGØÐð œC × 5Ñ 5Ó6Ô6ØÐô $+¨;¸
Ó#C÷ $ð $ÐHYÔadÜ�˜ZÓ(óbñ IÐ ô !(¨Ð5TÓ U÷ !ð !ÐZkÔsvÜ�Ð<Ó=ótñ [Ð÷ $×'@Ü,0Ø× Ñ  ;´Ð"@ÐBZÀ[×EYÑEYÐBZó-
Ð)ð 1Ð0ØÐr4   c                   ó
  a € ] tR tRt o RtV 3R lR ltV 3R lR ltV 3R lR ltR	 tV 3R
 lR lt	V 3R lR lt
V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltRV 3R lR lltR t]R 4       tRtV tR# )Ú_LazyAutoMappingi?  zø
A mapping config to object (model or tokenizer for instance) that will load keys and values when it is accessed.

Args:
    - config_mapping: The map model type to config class
    - model_mapping: The map model type to model (or tokenizer) class
c                ó   <€ V ^8„  d   QhRR/# r,   r/   )r0   r1   s   "€r'   r2   Ú_LazyAutoMapping.__annotate__H  s   ø€ ÷ ñ ¸ñ r4   c                ó¸   € Wn         VP                  4        UUu/ uF  w  r4WCbK	  	  uppV n        W n        W P                  n        / V n        / V n        R # u uppi rQ   )Ú_config_mappingrø   Ú_reverse_config_mappingr]   Ú_extra_contentÚ_modules)r8   Úconfig_mappingr"   rü   rý   s   &&&  r'   r;   Ú_LazyAutoMapping.__init__H  sU   € Ø-ÔØ9G×9MÑ9MÔ9OÔ'PÑ9O±°¨ªÑ9OÒ'PˆÔ$Ø+ÔØ-1×ÑÔ*Ø ˆÔØˆŽùó	 (Qs   šAc                ó    <€ V ^8„  d   QhRS[ /# ©r-   r.   )Úint)r0   r1   s   "€r'   r2   r  P  s   ø€ ÷ ;ñ ;™ñ ;r4   c                óà   € \        V P                  P                  4       4      P                  V P                  P                  4       4      p\        V4      \        V P                  4      ,           # rQ   )Úsetr  ÚkeysÚintersectionr]   rÓ   r  )r8   Úcommon_keyss   & r'   Ú__len__Ú_LazyAutoMapping.__len__P  sP   € Ü˜$×.Ñ.×3Ñ3Ó5Ó6×CÑCÀD×DWÑDW×D\ÑD\ÓD^Ó_ˆÜ�;Ó¤# d×&9Ñ&9Ó":Õ:Ð:r4   c                ó6   <€ V ^8„  d   QhRS[ S[,          RS[/# )r-   Úkeyr.   )r   r   Ú_LazyAutoMappingValue)r0   r1   s   "€r'   r2   r  T  s"   ø€ ÷ ñ ™tÑ$4Õ5ð Ñ:Oñ r4   c                ó  € WP                   9   d   V P                   V,          # V P                  VP                  ,          pW P                  9   d%   V P                  V,          pV P	                  W#4      # V P
                  P                  4        UUu. uF  w  rEWQP                  8X  g   K  VNK  	  pppV F9  pWpP                  9   g   K  V P                  V,          pV P	                  Ws4      u # 	  \        V4      hu uppi rQ   )r  r  r   r]   Ú_load_attr_from_moduler  rø   ÚKeyError)r8   r  Ú
model_typeÚ
model_namerü   rý   Úmodel_typesÚmtypes   &&      r'   Ú__getitem__Ú_LazyAutoMapping.__getitem__T  sÝ   € Ø×%Ñ%Ô%Ø×&Ñ& sÕ+Ð+Ø×1Ñ1°#·,±,Õ?ˆ
Ø×,Ñ,Ô,Ø×,Ñ,¨ZÕ8ˆJØ×.Ñ.¨zÓFÐFð &*×%9Ñ%9×%?Ñ%?Ô%AÔWÑ%A™T˜QÀQÏ,É,ÑEV—q�qÑ%AˆÑWÛ ˆEØ×+Ñ+Ö+Ø!×0Ñ0°Õ7�
Ø×2Ñ2°5ÓEÒEñ !ô �s‹mÐùó Xs   ÂC>Â+C>c                óÀ   € \        V4      pW0P                  9  d(   \        P                  ! R V 2R4      V P                  V&   \	        V P                  V,          V4      # )rZ   ztransformers.models)r   r  rù   rú   rñ   )r8   r#  rû   Úmodule_names   &&& r'   r!  Ú'_LazyAutoMapping._load_attr_from_moduled  sO   € Ü/°
Ó;ˆØŸm™mÔ+Ü)2×)@Ò)@À1À[ÀMÐARÐTiÓ)jˆD�M‰M˜+Ñ&Ü'¨¯©°kÕ(BÀDÓIÐIr4   c                ó@   <€ V ^8„  d   QhRS[ S[S[,          ,          /# r  )r   r   r   )r0   r1   s   "€r'   r2   r  j  s   ø€ ÷ ?ñ ?‘d™4Ñ 0Õ1Õ2ñ ?r4   c                óþ   € V P                   P                  4        UUu. uF(  w  rWP                  9   g   K  V P                  W4      NK*  	  pppV\	        V P
                  P                  4       4      ,           # u uppi rQ   )r  rø   r]   r!  r   r  r  )r8   r  r¤   Úmapping_keyss   &   r'   r  Ú_LazyAutoMapping.keysj  st   € ð "×1Ñ1×7Ñ7Ô9ô
á9‘	�Ø×)Ñ)Ñ)ô 3ˆD×'Ñ'¨Ö2Ù9ð 	ñ 
ð
 œd 4×#6Ñ#6×#;Ñ#;Ó#=Ó>Õ>Ð>ùó
ó
   žA9·A9c                óL   <€ V ^8„  d   QhRS[ S[,          RS[RS[S[,          /# )r-   r  Údefaultr.   )r   r   r   r  )r0   r1   s   "€r'   r2   r  r  s/   ø€ ÷ ñ ‘tÑ,Õ-ð ¹ð Ñ?TÑWYÕ?Yñ r4   c                óL   €  V P                  V4      #   \         d    Tu # i ; irQ   )r'  r"  )r8   r  r2  s   &&&r'   rh   Ú_LazyAutoMapping.getr  s,   € ð	Ø×#Ñ# CÓ(Ð(øÜô 	ØŠNð	ús   ‚ “#¢#c                ó    <€ V ^8„  d   QhRS[ /# r  )Úbool)r0   r1   s   "€r'   r2   r  x  s   ø€ ÷ !ñ !™$ñ !r4   c                ó4   € \        V P                  4       4      # rQ   )r6  r  ©r8   s   &r'   Ú__bool__Ú_LazyAutoMapping.__bool__x  ó   € Ü�D—I‘I“KÓ Ð r4   c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r  )r   r  )r0   r1   s   "€r'   r2   r  {  s   ø€ ÷ Cñ C™Ñ2Õ3ñ Cr4   c                óþ   € V P                   P                  4        UUu. uF(  w  rWP                  9   g   K  V P                  W4      NK*  	  pppV\	        V P
                  P                  4       4      ,           # u uppi rQ   )r]   rø   r  r!  r   r  rë   )r8   r  r¤   Úmapping_valuess   &   r'   rë   Ú_LazyAutoMapping.values{  st   € ð "×0Ñ0×6Ñ6Ô8ô
á8‘	�Ø×*Ñ*Ñ*ô 3ˆD×'Ñ'¨Ö2Ù8ð 	ñ 
ð
 ¤ T×%8Ñ%8×%?Ñ%?Ó%AÓ BÕBÐBùó
r0  c                óV   <€ V ^8„  d   QhRS[ S[S[S[,          S[3,          ,          /# r  )r   r   r   r   r  )r0   r1   s   "€r'   r2   r  ƒ  s-   ø€ ÷ 	Añ 	A‘t™E¡$Ñ'7Õ"8Ñ:OÐ"OÕPÕQñ 	Ar4   c           	     ó>  € V P                    Uu. uFY  pWP                  9   g   K  V P                  WP                  V,          4      V P                  WP                   V,          4      3NK[  	  ppV\        V P                  P                  4       4      ,           # u upi rQ   )r]   r  r!  r   r  rø   )r8   r  Úmapping_itemss   &  r'   rø   Ú_LazyAutoMapping.itemsƒ  s—   € ð ×*Ò*ó
ñ
 +�Ø×*Ñ*Ñ*ôØ×+Ñ+¨C×1EÑ1EÀcÕ1JÓKØ×+Ñ+¨C×1DÑ1DÀSÕ1IÓJóñ +ð 	ð 
ð œt D×$7Ñ$7×$=Ñ$=Ó$?Ó@Õ@Ð@ùò
s   �B¦ABc                ó@   <€ V ^8„  d   QhRS[ S[S[,          ,          /# r  )r   r   r   )r0   r1   s   "€r'   r2   r  Ž  s   ø€ ÷ !ñ !™(¡4Ñ(8Õ#9Õ:ñ !r4   c                ó4   € \        V P                  4       4      # rQ   )Úiterr  r8  s   &r'   Ú__iter__Ú_LazyAutoMapping.__iter__Ž  r;  r4   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r-   Úitemr.   )r   r6  )r0   r1   s   "€r'   r2   r  ‘  s   ø€ ÷ 1ñ 1¡ð 1©$ñ 1r4   c                óÚ   € WP                   9   d   R # \        VR4      '       d   VP                  V P                  9  d   R# V P                  VP                  ,          pW P                  9   # )Tr   F)r  r\   r   r  r]   )r8   rJ  r#  s   && r'   Ú__contains__Ú_LazyAutoMapping.__contains__‘  sU   € Ø×&Ñ&Ô&ÙÜ�t˜Z×(Ò(¨D¯M©MÀ×A]ÑA]Ô,]ÙØ×1Ñ1°$·-±-Õ@ˆ
Ø×0Ñ0Ñ0Ð0r4   c                óJ   <€ V ^8„  d   QhRS[ S[,          S[,          RS[RR/# )r-   r  Úvaluer.   N)r   r   r   r  )r0   r1   s   "€r'   r2   r  ™  s/   ø€ ÷ )ñ )™DÑ!1Õ2±SÕ8ð )ÑAVð )Ðkoñ )r4   c                óL  € \        VR4      '       d`   VP                  V P                  9   dE   V P                  VP                  ,          pW@P                  9   d   V'       g   \	        RV R24      h\        VRR4      P                  R4      '       d   R# W P                  V&   R# )z'
Register a new model in this mapping.
r   Ú'z*' is already used by a Transformers model.r^   Ú r@   N)r\   r   r  r]   rj   r    r_   r  )r8   r  rO  rE   r#  s   &&&& r'   rc   Ú_LazyAutoMapping.register™  sˆ   € ô �3˜
×#Ò#¨¯©¸×8TÑ8TÔ(TØ×5Ñ5°c·l±lÕCˆJØ×0Ñ0Ô0¿Ü  1 S EÐ)SÐ!TÓUÐUô �3˜ bÓ)×4Ñ4°_×EÒEÙð $)×Ñ˜CÓ r4   c                ó†   € V P                   P                  V P                  V P                  \	        V P
                  4      33# rQ   )r7   Ú_from_pickler  r]   r÷   r  r8  s   &r'   Ú
__reduce__Ú_LazyAutoMapping.__reduce__®  s:   € à�N‰N×'Ñ'Ø×!Ñ! 4×#6Ñ#6¼¸T×=PÑ=PÓ8QÐRð
ð 	
r4   c                ó"   € V ! W4      pW4n         V# rQ   )r  )rl   r  r"   Úextra_contentÚobjs   &&&& r'   rU  Ú_LazyAutoMapping._from_pickle´  s   € á�.Ó0ˆØ*ÔØˆ
r4   )r  r  r]   r  r  Nr°   )r   r^   r±   r²   râ   r;   r  r'  r!  r  rh   r9  rë   rø   rG  rL  rc   rV  r³   rU  r´   rµ   r¶   s   @r'   r	  r	  ?  s›   ø‡ € ñ÷ð ÷;ð ;÷ð ò J÷?ð ?÷ð ÷!ð !÷Cð C÷	Að 	A÷!ð !÷1ð 1÷)ò )ò*
ð ñó ör4   r	  rî   )rR  )zgoogle-bert/bert-base-casedrR  )6râ   rš   rù   rœ   r€   Úcollectionsr   Úcollections.abcr   Útypingr   r   Úconfiguration_utilsr   Údynamic_module_utilsr   r	   Úutilsr
   r   r   r   r   r   r   r   r   r   Úconfiguration_autor   r   r   Ú
generationr   Ú
get_loggerr   Úloggerr   r   r   r  rá   rã   rä   r(   r*   r¸   rÖ   ré   rî   rñ   re   r	  Ú__all__r/   r4   r'   Ú<module>rg     s	  ðñ 4ã Û Û Û 	Ý #Ý $ß å 3ß \÷÷ ÷ ÷ iÑ hñ ×ÒÝ-ð 
×	Ò	˜HÓ	%€áˆTƒ]€à˜d 3�i¨$Õ.°°Sµ	¸DÕ0@Ð@ÕAÐ ð€ðÐ ð4Z#Ð òz÷ iRñ iRôX$]Ð0ô $]÷N÷ò<òMò,ô@y�{ 4Ð(8Õ#9Ð;PÐ#PÕQô yðx ˆ.‚r4   