wonderful-action-70659
07/25/2024, 9:26 PM# Contains torch pinned to 2.0.0 but no cuda/nvidia dependencies
poetry_requirements(
name="reqs",
source="pyproject.toml",
module_mapping={
"imath": ["Imath"],
...
},
resolve="python-default"
)
# Contains all coda dependencies spelled out with version from a poetry.lock file
python_requirements(
name="cuda_reqs",
source="cuda_requirements.txt",
resolve="cuda",
)
# Getting dependencies again from the same Poetry file but overriding
# the Torch dependencies, as these are not picked up
# Uses another resolve since if I do it for python--local, I can't
# export a venv anymore because the coda dependencies are not found for Mac
poetry_requirements(
name="reqs_2",
source="pyproject.toml",
module_mapping={
"imath": ["Imath"],
...
},
overrides={
"torch": {
"dependencies": [
":cuda_reqs#nvidia-cublas-cu11",
...
":cuda_reqs#triton"
]
}
},
resolve="cuda"
)