-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
The onnxruntime-training package is no longer published after ORT 1.19.2 (current release is ORT 1.22.0); also, it is not published for Python 3.12+. New users should probably build the onnxruntime-training package from scratch before installing torch-ort e.g. https://onnxruntime.ai/docs/build/training.html
See also this related comment in huggingface/optimum; optimum uses ORT through torch-ort for huggingface training: huggingface/optimum#2213 (review)
pip install torch-ort output:
pip install torch-ort
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting torch-ort
Downloading torch_ort-1.19.2-py3-none-any.whl.metadata (1.7 kB)
INFO: pip is looking at multiple versions of torch-ort to determine which version is compatible with other requirements. This could take a while.
Downloading torch_ort-1.19.1-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.18.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.17.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.16.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.15.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.14.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.13.1-py3-none-any.whl.metadata (1.7 kB)
INFO: pip is still looking at multiple versions of torch-ort to determine which version is compatible with other requirements. This could take a while.
Downloading torch_ort-1.12.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.11.1-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.11.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.9.0-py3-none-any.whl.metadata (1.7 kB)
Downloading torch_ort-1.8.1-py3-none-any.whl.metadata (5.5 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Downloading torch_ort-0.0.10-py3-none-any.whl.metadata (5.3 kB)
ERROR: Cannot install torch-ort==0.0.10, torch-ort==1.11.0, torch-ort==1.11.1, torch-ort==1.12.0, torch-ort==1.13.1, torch-ort==1.14.0, torch-ort==1.15.0, torch-ort==1.16.0, torch-ort==1.17.0, torch-ort==1.18.0, torch-ort==1.19.1, torch-ort==1.19.2, torch-ort==1.8.1 and torch-ort==1.9.0 because these package versions have conflicting dependencies.
The conflict is caused by:
torch-ort 1.19.2 depends on onnxruntime-training>=1.7.0
torch-ort 1.19.1 depends on onnxruntime-training>=1.7.0
torch-ort 1.18.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.17.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.16.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.15.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.14.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.13.1 depends on onnxruntime-training>=1.7.0
torch-ort 1.12.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.11.1 depends on onnxruntime-training>=1.7.0
torch-ort 1.11.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.9.0 depends on onnxruntime-training>=1.7.0
torch-ort 1.8.1 depends on onnxruntime-training>=1.7.0
torch-ort 0.0.10 depends on onnxruntime-training>=1.7.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Metadata
Metadata
Assignees
Labels
No labels