Skip to content

sdpython/experimental-experiment

Repository files navigation

https://github.com/sdpython/experimental-experiment/raw/main/_doc/_static/logo.png

experimental-experiment: fuzzy work

https://dev.azure.com/xavierdupre3/experimental-experiment/_apis/build/status/sdpython.experimental-experiment GitHub Issues MIT License size https://codecov.io/gh/sdpython/experimental-experiment/branch/main/graph/badge.svg?token=Wb9ZGDta8J

Getting started

pytorch nightly build should be installed, see Start Locally.

git clone https://github.com/sdpython/experimental-experiment.git
pip install onnxruntime-gpu pynvml
pip install -r requirements-dev.txt
export PYTHONPATH=$PYTHONPATH:<this folder>

Compare torch exporters

The script evaluates the memory peak, the computation time of the exporters. It also compares the exported models when run through onnxruntime. The full script takes around 20 minutes to complete. It stores on disk all the graphs, the data used to draw them, and the models.

python _doc/examples/plot_torch_export.py -s large

Documentation

See experimental-experiment.