Skip to content

PyTorch/torchdata Version Compatibility Issue with CUDA 11.8 #8

@ssiddhantsharma

Description

@ssiddhantsharma

Complex dependency conflicts between PyTorch, torchdata, and DGL when using CUDA 11.8:

  • PyTorch 2.2.0+cu118 required for CUDA 11.8
  • torchdata 0.6.1 requires PyTorch 2.0.1 exactly
  • torchdata 0.7.0+ missing torchdata.datapipes module expected by DGL
  • Installing compatible torchdata downgrades PyTorch to 2.1.0
  • Creates conflicts with torchaudio 2.2.0+cu118 and torchvision 0.17.0+cu118

Additional Context

Solution

Downgrade to compatible versions:

pip install torch==2.2.1 torchdata==0.7.1
pip install "numpy<2"

Alternative for newer torchdata:

pip install torchdata==0.9.0  # if torchdata 0.10.0+ causes issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions