pytorch/benchmarks
Mikayla Gawarecki 31f21e033e Run inference in an Executor (#115286)
Experiment: run model predictions in the backend in a ThreadPoolExecutor so that each model prediction does not block reading requests from the queue

Baseline is reset in above PR that bugfixes a lot of the metrics calculations but I kept the metrics here anyway

Pull Request resolved: https://github.com/pytorch/pytorch/pull/115286
Approved by: https://github.com/albanD
2023-12-20 22:08:02 +00:00
..
cpp [BE]: Remove useless lambdas (#113602) 2023-11-14 20:06:48 +00:00
distributed [BE]: Apply FURB118 (prev): replaces unnecessary lambdas with operator. (#116027) 2023-12-20 19:35:08 +00:00
dynamo Run eager adam optimizer in benchmarks where possible (#115445) 2023-12-18 18:28:23 +00:00
fastrnns
framework_overhead_benchmark
functional_autograd_benchmark
fuser
inference Run inference in an Executor (#115286) 2023-12-20 22:08:02 +00:00
instruction_counts
nested
operator_benchmark
overrides_benchmark
profiler_benchmark
record_function_benchmark
serialization
sparse
static_runtime
tensorexpr [BE]: Apply FURB118 (prev): replaces unnecessary lambdas with operator. (#116027) 2023-12-20 19:35:08 +00:00
transformer Update the sdpa benchmark to measure forward backward time in isolation (#115986) 2023-12-18 22:40:47 +00:00
compare-fastrnn-results.py
compare.sh
README.md
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: