Skip to main content

training Pytorch models with onnxruntime

Project description

training pytorch models with onnxruntime

to build (you need to update version number in version.txt in order to be able to upload python whl):

rm dist/*
python setup.py bdist_wheel

to publish:

twine upload dist/*

to install:

stable:

(uninstall onnxruntime version that do not support gpu and training)
pip install torchort onnxruntime=1.9.0+cu111_training

nightly:

(make sure you are not in the ort repo folder - otherwise torchort is taken as already installed)
pip install --pre torchort ort-gpu-nightly-training

(eventually we are aiming at: pip install --pre torchort onnxruntime=1.9.0+cu111_training)

to test:

python ./ort/tests/bert_for_sequence_classification.py

to use torchort within PyTorch training scripts:

import onnxruntime
from torchort import ORTModule
model = ORTModule(model)
# normal PyTorch training script follows

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchort-0.0.8.dev20210317-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file torchort-0.0.8.dev20210317-py3-none-any.whl.

File metadata

  • Download URL: torchort-0.0.8.dev20210317-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for torchort-0.0.8.dev20210317-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8fcde3216f8d6f3442dd9240d506660b858166629285a796e919ef8ae2add5
MD5 4861f7aaf19fa6228af675df4d83109f
BLAKE2b-256 bf9ef1b02d5d8bd7fc1eb03b2ad98a711bae4f32a650e06485c1ce30d05f787c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page