pytorch/benchmarks
Xuehai Pan 0dae2ba5bd [2/N][Easy] fix typo for usort config in pyproject.toml (kown -> known): sort caffe2 (#127123)
The `usort` config in `pyproject.toml` has no effect due to a typo. Fixing the typo make `usort` do more and generate the changes in the PR. Except `pyproject.toml`, all changes are generated by `lintrunner -a --take UFMT --all-files`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/127123
Approved by: https://github.com/Skylion007
ghstack dependencies: #127122
2024-05-25 18:26:34 +00:00
..
distributed Introduce ProcessGroupCudaP2P (#122163) 2024-05-24 18:33:18 +00:00
dynamo [1/N][Easy] fix typo for usort config in pyproject.toml (kown -> known): sort stdlib (#127122) 2024-05-25 08:25:50 +00:00
fastrnns
framework_overhead_benchmark [2/N][Easy] fix typo for usort config in pyproject.toml (kown -> known): sort caffe2 (#127123) 2024-05-25 18:26:34 +00:00
functional_autograd_benchmark
fuser
gpt_fast Add micro-benchmark framework and multi_layer_norm as an example (#126754) 2024-05-22 01:27:37 +00:00
inference
instruction_counts
nested
operator_benchmark [2/N][Easy] fix typo for usort config in pyproject.toml (kown -> known): sort caffe2 (#127123) 2024-05-25 18:26:34 +00:00
overrides_benchmark
profiler_benchmark
record_function_benchmark
serialization
sparse
static_runtime Fix layer norm in static runtime when input is non-contiguous (#124789) 2024-04-24 19:49:36 +00:00
tensorexpr [BE]: TRY002 - Ban raising vanilla exceptions (#124570) 2024-04-21 22:26:40 +00:00
transformer Add Lowering for FlexAttention Backwards (#125515) 2024-05-17 00:41:55 +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: