8000 [BUG] ImportError: cannot import name 'T_co' from 'torch.utils.data.distributed' · Issue #633 · huggingface/lighteval · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG] ImportError: cannot import name 'T_co' from 'torch.utils.data.distributed' #633
Closed
@blap

De 61A8 scription

@blap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0