Skip to content

[Docs] Build from source with Python 3.12 + PyTorch 2.8 + CUDA 12.9 is easy and works on Linux #3303

@JohannesTheo

Description

@JohannesTheo

📚 The doc issue

Hey there,

to anyone looking for a setup with a more recent PyTorch version, I just wanted to document that the following versions did work for me on Linux. I did not exhaustively test the install but a simple training with mmdet 3 ran just fine for a few iterations :)

# env
conda create --name my_env python=3.12
conda activate my_env
pip install torch==2.8.0+cu129 torchvision==0.23.0+cu129 --index-url https://download.pytorch.org/whl/cu129
conda install -c nvidia cuda==12.9

# mmcv from source: https://mmcv.readthedocs.io/en/latest/get_started/build.html
# gcc (Debian 12.2.0-14+deb12u1) 12.2.0
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
pip install -r requirements/optional.txt
pip install -e . -v

Hope this helps, will update when properly verified.

Suggest a potential alternative/fix

No response

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