Closed
De 61A8 scription
Describe the bug
I got this error instaling litghteval from pip in Windows:
ImportError: cannot import name 'T_co' from 'torch.utils.data.distributed'
(C:\Users\Admin\Desktop\Python\0.LLMs\lighteval\venv\Lib\site-packages\torch\utils\data\distributed.py)
This error occurs due to changes in the PyTorch library. The 'T_co' type alias have been renamed to '_T_co' in newer versions of PyTorch.
To Reproduce
Just run lighteval with newer versions of PyTorch. #574
Expected behavior
Just run lighteval without errors.
Version info
PyTorch 2.6.0+cu126
litghteval 0.7.0