I've been chasing how to do this for days and Google couldn't help me. So here's me hoping I'm helping the next poor soul.
In pyproject.toml:
dependencies = [
"torch>=2.7.1",
]
[[tool.pdm.source]]
type = "index"
url = "https://download.pytorch.org/whl/cpu/"
name = "torch"
Top comments (0)