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.
TurnkeyML requires Python 3.11 and is tested on Windows and Linux. Install it from PyPI:
python -m pip install turnkeymlTo 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.
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-pytorchIn a source checkout, you can use the path in the repository instead:
turnkey -i models/selftest/linear.py discover export-pytorchList available tools and get help for a specific tool:
turnkey -h
turnkey export-pytorch -h- Turnkey guide: workflows and concepts.
- Tools user guide: CLI and API reference.
- Examples and models.
- Plugins: extend Turnkey with custom tools and devices.
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.
We are actively seeking collaborators from across the industry. If you would like to contribute to this project, please check out our contribution guide.
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.
This project is licensed under the Apache 2.0 License.
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.
