ó
    Eñit  ã                   ó.   • S SK rS SKrS SKrSS\4S jjrg)é    NÚupgradec                 ó”  • SnS[         R                  ;   a-  S[        [         R                  S   R                  5       5      ;   nU(       at  U (       a  / SQn[        R
                  " USS9  [        R                  R                  S5      nUSUR                  S	5       nS
U S3nSSU/n[        R
                  " USS9  g[        S5      e)aY  
Helper function to install appropriate xla wheels based on the `torch` version in Google Colaboratory.

Args:
    upgrade (`bool`, *optional*, defaults to `False`):
        Whether to upgrade `torch` and install the latest `torch_xla` wheels.

Example:

```python
>>> from accelerate.utils import install_xla

>>> install_xla(upgrade=True)
```
FÚIPythonzgoogle.colab)ÚpipÚinstallz-UÚtorchT)Úcheckr   NÚ.zBhttps://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-z-cp37-cp37m-linux_x86_64.whlr   r   z1`install_xla` utility works only on google colab.)ÚsysÚmodulesÚstrÚget_ipythonÚ
subprocessÚrunÚ	importlibÚmetadataÚversionÚrindexÚRuntimeError)r   Úin_colabÚtorch_install_cmdÚtorch_versionÚtorch_version_truncÚ	xla_wheelÚxla_install_cmds          ÚW/home/mande/repo/quber/.venv/lib/python3.13/site-packages/accelerate/utils/torch_xla.pyÚinstall_xlar      s¾   € ð  €HØ”C—K‘KÓØ!¤S¬¯©°YÑ)?×)KÑ)KÓ)MÓ%NÑNˆæÞÚ AÐÜ�NŠNÐ,°DÒ9ä!×*Ñ*×2Ñ2°7Ó;ˆØ+Ð,G¨m×.BÑ.BÀ3Ó.GÐHÐØXÐYlÐXmð  nJð  Kˆ	Ø  )¨YÐ7ˆÜ�Š�¨dÓ3äÐNÓOÐOó    )F)Úimportlib.metadatar   r   r   Úboolr   © r   r   Ú<module>r"      s   ðó Û Û 
ñP˜ö Pr   