+
    QV-j"  ã                   óT   € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ] ! R R4      4       tR# )é    N)Ú	dataclass)ÚAnyc                   ó€   a € ] tR t^t o RtRt]R 4       tV 3R lR ltV 3R lR lt	R t
R	 tR
 tR tV 3R ltRtV tR# )ÚDistributedConfigz$
Base class for distributed configs
Fc                óâ   € V ! R/ VB p. pVP                  4        F5  w  rV\        W54      '       g   K  \        W5V4       VP                  V4       K7  	  V F  pVP	                  VR4       K  	  V# )aK  
Constructs a DistributedConfig instance from a dictionary of parameters.
Args:
    config_dict (Dict[str, Any]): Dictionary containing configuration parameters.
    **kwargs: Additional keyword arguments to override dictionary values.
Returns:
    DistributedConfig: Instance of DistributedConfig constructed from the dictionary.
N© )ÚitemsÚhasattrÚsetattrÚappendÚpop)ÚclsÚconfig_dictÚkwargsÚconfigÚ	to_removeÚkeyÚvalues   &&,    Ú}/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/distributed/configuration_utils.pyÚ	from_dictÚDistributedConfig.from_dict   sj   € ñ Ñ#�{Ñ#ˆØˆ	Ø Ÿ,™,ž.‰JˆCÜ�v×#Ô#Ü˜ UÔ+Ø× Ñ  Ö%ñ )ó ˆCØ�J‰J�s˜DÖ!ñ àˆó    c                óD   <€ V ^8„  d   QhRS[ S[P                  ,          /# )é   Újson_file_path)ÚstrÚosÚPathLike)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚDistributedConfig.__annotate__4   s   ø€ ÷ &ñ &©3±·±Õ+<ñ &r   c                óî   € \        VRRR7      ;_uu_ 4       pV P                  4       p\        P                  ! V^RR7      R,           pVP	                  V4       RRR4       R#   + '       g   i     R# ; i)a‚  
Save this instance to a JSON file.
Args:
    json_file_path (`str` or `os.PathLike`):
        Path to the JSON file in which this configuration instance's parameters will be saved.
    use_diff (`bool`, *optional*, defaults to `True`):
        If set to `True`, only the difference between the config instance and the default
        `QuantizationConfig()` is serialized to JSON file.
Úwzutf-8)ÚencodingT)ÚindentÚ	sort_keysÚ
N)ÚopenÚto_dictÚjsonÚdumpsÚwrite)Úselfr   Úwriterr   Újson_strings   &&   r   Úto_json_fileÚDistributedConfig.to_json_file4   sR   € ô �. #°×8Õ8¸FØŸ,™,›.ˆKÜŸ*š* [¸ÀdÔKÈdÕRˆKà�L‰L˜Ô%÷	 9×8×8Ò8ús   —AA#Á#A4	c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# )r   Úreturn)Údictr   r   )r   r    s   "€r   r!   r"   D   s   ø€ ÷ ,ñ ,™™c¡3˜h�ñ ,r   c                óB   € \         P                  ! V P                  4      # )zœ
Serializes this instance to a Python dictionary. Returns:
    `Dict[str, Any]`: Dictionary of all the attributes that make up this configuration instance.
)ÚcopyÚdeepcopyÚ__dict__©r.   s   &r   r*   ÚDistributedConfig.to_dictD   s   € ô
 �}Š}˜TŸ]™]Ó+Ð+r   c              #  ó~   "  € \         P                  ! V P                  4      P                  4        Rj  x€L
  R#  L5i)zTallows `dict(obj)` for situations where obj may be a dict or QuantizationConfigMixinN)r7   r8   r9   r	   r:   s   &r   Ú__iter__ÚDistributedConfig.__iter__L   s$   é € ä—=’= §¡Ó/×5Ñ5Ó7×7Ô7ùs   ‚2=´;µ=c                óT   € V P                   P                   R V P                  4        2# )Ú )Ú	__class__Ú__name__Úto_json_stringr:   s   &r   Ú__repr__ÚDistributedConfig.__repr__Q   s(   € Ø—.‘.×)Ñ)Ð*¨!¨D×,?Ñ,?Ó,AÐ+BÐCÐCr   c                óT   € \         P                  ! V P                  ^R7      R,           # )z‡
Serializes this instance to a JSON formatted string.
Returns:
    str: JSON formatted string representing the configuration instance.
)r&   r(   )r+   r,   r9   r:   s   &r   rC   Ú DistributedConfig.to_json_stringT   s   € ô �zŠz˜$Ÿ-™-°Ô2°TÕ9Ð9r   c                óþ   € . pVP                  4        F5  w  r4\        W4      '       g   K  \        WV4       VP                  V4       K7  	  VP                  4        UUu/ uF  w  r4W29  g   K  W4bK  	  pppV# u uppi )am  
Updates attributes of this class instance with attributes from `kwargs` if they match existing attributes,
returning all the unused kwargs.
Args:
    kwargs (`Dict[str, Any]`):
        Dictionary of attributes to tentatively update this class.
Returns:
    `Dict[str, Any]`: Dictionary containing all the key-value pairs that were not used to update the instance.
)r	   r
   r   r   )r.   r   r   r   r   Úunused_kwargss   &,    r   ÚupdateÚDistributedConfig.update\   sq   € ð ˆ	Ø Ÿ,™,ž.‰JˆCÜ�t×!Ô!Ü˜ 5Ô)Ø× Ñ  Ö%ñ )ð 7=·l±l´nÔ]±n©
¨ÈÑH\œ˜š±nˆÑ]ØÐùó ^s   Á
A9Á.A9c                ó&   <€ V ^8„  d   Qh/ S[ ;R&   # )r   Úenable_expert_parallel)Úbool)r   r    s   "€r   r!   r"      s   ø‡ ‚ ñ !Ñ(ò r   r   N)rB   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rM   Úclassmethodr   r1   r*   r=   rD   rC   rJ   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__)r    s   @r   r   r      sW   ø‡ € ñð $)Ðð ñó ð÷(&ð &÷ ,ð ,ò8ò
Dò:ò÷M ƒ r   r   )r7   r+   r   Údataclassesr   Útypingr   r   r   r   r   Ú<module>rY      s2   ðó Û Û 	Ý !Ý ð ÷Wð Wó òWr   