pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116conda create -n <env-name> python=3.10
conda install pytorch==1.13.1 torchvision==0.14.1 pytorch-cuda=11.6 -c pytorch -c nvidia[tool.poetry.dependencies]
torch = {version = "1.13.1+cu116", source = "pytorch-cu116"}
torchvision = {version = "0.14.1+cu116", source = "pytorch-cu116"}
numpy = "<2"
[[tool.poetry.source]]
name = "pytorch-cu116"
url = "https://download.pytorch.org/whl/cu116"
priority = "explicit"Then:
poetry install