pytorch/benchmarks
Aaron Gokaslan 597b558c51 [BE]: Update flake8 and plugins and fix bugs (#97795)
Update flake8 and flake8-plugins in lintrunner to a modern version. Enables more checks and makes flake8 checks significantly faster. Added a few additional rule ignores that will need to be fixed in the future.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97795
Approved by: https://github.com/alexsio27444, https://github.com/janeyx99, https://github.com/ezyang
2023-03-28 23:51:55 +00:00
..
cpp moving nvfuser benchmark to third_party/nvfuser (#96725) 2023-03-21 23:19:15 +00:00
distributed [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
dynamo [CI] Run benchmark test with dynamo_eager in periodic (#97543) 2023-03-28 01:02:49 +00:00
fastrnns [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
framework_overhead_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
functional_autograd_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
fuser
instruction_counts [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
nested
operator_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
overrides_benchmark
profiler_benchmark [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
record_function_benchmark [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
serialization [PyTorch] Add annotation_str benchmark (#96496) 2023-03-23 04:18:07 +00:00
sparse [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
static_runtime Fix flaky StaticRuntime.Nonzero test (#94418) 2023-02-16 21:25:15 +00:00
tensorexpr Fix usages of contextmanager without finally (#96170) 2023-03-08 20:59:27 +00:00
transformer [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
compare-fastrnn-results.py
compare.sh
README.md
upload_scribe.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00

PyTorch Benchmarks

This folder contains scripts that produce reproducible timings of various PyTorch features.

It also provides mechanisms to compare PyTorch with other frameworks.

Setup environment

Make sure you're on a machine with CUDA, torchvision, and pytorch installed. Install in the following order:

# Install torchvision. It comes with the pytorch stable release binary
conda install pytorch torchvision -c pytorch

# Install the latest pytorch master from source.
# It should supersede the installation from the release binary.
cd $PYTORCH_HOME
python setup.py build develop

# Check the pytorch installation version
python -c "import torch; print(torch.__version__)"

Benchmark List

Please refer to each subfolder to discover each benchmark suite