Repository: huggingface/lighteval
Issue: [BUG] cannot import name 'T_co' from 'torch.utils.data.distributed'
Root cause: External Dependency Breakage

## Describe the bug
import error when try to reproduce evaluate tasks from  [https://github.com/huggingface/open-r1/tree/main?tab=readme-ov-file#evaluating-models](url)

## To Reproduce
│ /home/jovyan/.conda/envs/swift-gjt/lib/python3.10/site-packages/lighteval/data.py:29 in <module>                                                                           │
│                                                                                                                                                                            │
│    26                                                                                                                                                                      │
│    27 import torch                                                                                                                                                         │
│    28 from torch.utils.data import Dataset                                                                                                                                 │
│ ❱  29 from torch.utils.data.distributed import DistributedSampler, T_co                                                                                                    │
│    30                                                                                                                                                                      │
│    31 from lighteval.tasks.requests import (                                                                                                                               │
│    32 │   GreedyUntilRequest,                                                                                                                                              │
│                                                                                                                                                                            │
│ ╭─────────────────────────────────────────────────────────────── locals ───────────────────────────────────────────────────────────────╮                                   │
│ │ Iterator = typing.Iterator                                                                                                           │                                   │
│ │  logging = <module 'logging' from '/home/jovyan/.conda/envs/swift-gjt/lib/python3.10/logging/__init__.py'>                           │                                   │
│ │     math = <module 'math' from '/home/jovyan/.conda/envs/swift-gjt/lib/python3.10/lib-dynload/math.cpython-310-x86_64-linux-gnu.so'> │                                   │
│ │    torch = <module 'torch' from '/home/jovyan/.conda/envs/swift-gjt/lib/python3.10/site-packages/torch/__init__.py'>                 │                                   │
│ │    Tuple = typing.Tuple                                                                                                              │                                   │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                                   │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ImportError: cannot import name 'T_co' from 'torch.utils.data.distributed' (/home/jovyan/.conda/envs/swift-gjt/lib/python3.10/site-packages/torch/utils/data/distributed.py)

## Version info
litghteval 0.7.0 pytorch 2.5.1 vllm=0.7.2 
 

Solved  this issued by install from git repository.