Skip to main content

The torch-ort packages uses the PyTorch APIs to accelerate PyTorch models using ONNX Runtime.

Dependencies

The torch-ort package depends on the onnxruntime-training package, which depends on specific versions of GPU libraries such as NVIDIA CUDA.

The default command pip install torch-ort installs the onnxruntime-training version that depends on CUDA 10.2.

If you have a different version of CUDA installed, you can install a different version of onnxruntime-training explicitly:

  • CUDA 11.1 pip install onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_stable_cu111.html

Post-installation step

Once torch-ort is installed, there is a post-installation step:

python -m torch_ort.configure

If this step fails, it is likely due to GPU library version mismatch between onnxruntime-training and your installation. You can check the version of onnxruntime-training by running pip list. For example:

onnxruntime-training 1.9.0+cu111

Releases

Metadata

Release files for torch-ort 1.19.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for torch-ort 1.19.2
File Interpreter ABI Platform Actions
torch_ort-1.19.2-py3-none-any.whl Python 3 none any Details for torch_ort-1.19.2-py3-none-any.whl

Release files / torch_ort-1.19.2-py3-none-any.whl

Download URL torch_ort-1.19.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6896e294610d06327301c6e53f35bae871cdfbced9460dc6f3cd418a5e2709b2
BLAKE2b-256 checksum
How to use checksums
94fb49c8280690b8ae7e7cba6c62fa83e1eed8663e20b2a628b938f32aeb734a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for torch-ort 1.19.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.19.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page