tree: c37a2d6f568fb6a6a8782c1e46cf9cdfeaed0c94 [path history] [tgz]
  1. 0_build_bench.sh
  2. 1_bench_and_report.sh
  3. bench.sh
  4. generate_report_and_archive.sh
  5. patch.py
  6. README.md
  7. reporter.py
  8. requirements.txt
benchmarks/dynamo/_onnx/README.md

This folder contains python scripts to extend the dynamo benchmarking framework for benchmarking ONNX export. Bash scripts to run the benchmark and generate markdown reports are also provided.

Usage

Setup

It is recommended to create a fresh python environment, clone and build PyTorch from source.

# NOTE: It is required to build PyTorch with `develop`.
# It is highly recommended to build PyTorch with CUDA support.
USE_CUDA=1 python setup.py develop

Run the following script to install the benchmark dependencies:

./0_build_bench.sh

Run Benchmark and Generate Report

./1_bench_and_report.sh

Bench single model

./bench.sh --filter BertForMaskedLM