Skip to content
onnxPublic

About

No-code CLI designed for accelerating ONNX workflows

Topics

Resources

Stars

248 stars

Watchers

12 watching

Forks

Latest commit

 

History

170 Commits

Folders and files

Repository files navigation

ONNX TurnkeyML

Turnkey tests OS - Windows | Linux Python 3.11

TurnkeyML provides a no-code CLI for ONNX workflows. Use turnkey to discover PyTorch models, export them to ONNX, and run tools in configurable sequences.

Installation

TurnkeyML requires Python 3.11 and is tested on Windows and Linux. Install it from PyPI:

python -m pip install turnkeyml

To work on TurnkeyML itself, install it from a source checkout instead:

git clone https://github.com/onnx/turnkeyml.git
cd turnkeyml
python -m pip install -e .

See the installation guide for environment setup and optional model and Slurm dependencies.

Quick start

Discover and export the self-test model that is installed with TurnkeyML. turnkey models-location --quiet prints the location of the included models; the command works in both Bash and PowerShell:

turnkey -i "$(turnkey models-location --quiet)/selftest/linear.py" discover export-pytorch

In a source checkout, you can use the path in the repository instead:

turnkey -i models/selftest/linear.py discover export-pytorch

List available tools and get help for a specific tool:

turnkey -h
turnkey export-pytorch -h
Turnkey Demo

Learn more

Lemonade SDK

Lemonade has moved to lemonade-sdk/lemonade and is no longer included in this repository. Install it separately with python -m pip install lemonade-sdk. See the new repository for its documentation and releases.

Contributing

We are actively seeking collaborators from across the industry. If you would like to contribute to this project, please check out our contribution guide.

Maintainers

This project is sponsored by the ONNX Model Zoo special interest group (SIG). It is maintained by @danielholanda @jeremyfowers @ramkrishna @vgodsoe in equal measure. You can reach us by filing an issue or emailing turnkeyml at amd dot com.

License

This project is licensed under the Apache 2.0 License.

Attribution

TurnkeyML used code from other open source projects as a starting point (see NOTICE.md). Thank you Philip Colangelo, Derek Elkins, Jeremy Fowers, Dan Gard, Victoria Godsoe, Mark Heaps, Daniel Holanda, Brian Kurtz, Mariah Larwood, Philip Lassen, Andrew Ling, Adrian Macias, Gary Malik, Sarah Massengill, Ashwin Murthy, Hatice Ozen, Tim Sears, Sean Settle, Krishna Sivakumar, Aviv Weinstein, Xueli Xao, Bill Xing, and Lev Zlotnik for your contributions to that work.

About

No-code CLI designed for accelerating ONNX workflows

Topics

Resources

Stars

248 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages