pytorch/benchmarks
Aaron Gokaslan 2f95a3d0fc [BE]: Apply ruff PERF fixes to torch (#104917)
Applies automated ruff fixes in the PERF modules and enables all automatic ones. I also updated ruff which applied some additional fixes.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/104917
Approved by: https://github.com/ezyang, https://github.com/albanD
2023-07-11 20:45:21 +00:00
..
cpp
distributed
dynamo [BE]: Apply ruff PERF fixes to torch (#104917) 2023-07-11 20:45:21 +00:00
fastrnns
framework_overhead_benchmark
functional_autograd_benchmark Add more child links to benchmark readme (#104627) 2023-07-06 12:11:00 +00:00
fuser
instruction_counts
nested
operator_benchmark [BE]: Apply ruff PERF fixes to torch (#104917) 2023-07-11 20:45:21 +00:00
overrides_benchmark
profiler_benchmark
record_function_benchmark
serialization
sparse [core][pruning][sparse][feature] SparseSemiStructured tensor subclass (#102135) 2023-06-27 19:21:06 +00:00
static_runtime
tensorexpr
transformer [transformer benchmark] relax tolerance in sdp.py (#101965) 2023-05-23 06:54:08 +00:00
compare-fastrnn-results.py
compare.sh
README.md Add more child links to benchmark readme (#104627) 2023-07-06 12:11:00 +00:00
upload_scribe.py

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. Links are provided where descriptions exist: