Name Date Size #Lines LOC

..--

distributed/H25-Apr-2025-3,1112,600

dynamo/H25-Apr-2025-54,05441,042

fastrnns/H25-Apr-2025-2,2491,727

framework_overhead_benchmark/H25-Apr-2025-216173

functional_autograd_benchmark/H25-Apr-2025-2,6662,085

fuser/H25-Apr-2025-361246

gpt_fast/H25-Apr-2025-1,6111,269

inference/H25-Apr-2025-689553

instruction_counts/H25-Apr-2025-2,2381,720

nested/H25-Apr-2025-6755

operator_benchmark/H25-Apr-2025-7,4795,657

overrides_benchmark/H25-Apr-2025-176123

profiler_benchmark/H25-Apr-2025-143112

record_function_benchmark/H25-Apr-2025-11995

serialization/H25-Apr-2025-7251

sparse/H25-Apr-2025-1,5241,228

static_runtime/H25-Apr-2025-14,61412,610

tensorexpr/H25-Apr-2025-2,7862,202

transformer/H25-Apr-2025-1,7221,395

README.mdH A D25-Apr-20251.1 KiB3425

compare-fastrnn-results.pyH A D25-Apr-20252.1 KiB7360

compare.shH A D25-Apr-2025230 53

upload_scribe.pyH A D25-Apr-20255.7 KiB164149

README.md

1# PyTorch Benchmarks
2
3This folder contains scripts that produce reproducible timings of various PyTorch features.
4
5It also provides mechanisms to compare PyTorch with other frameworks.
6
7## Setup environment
8Make sure you're on a machine with CUDA, torchvision, and pytorch installed. Install in the following order:
9```
10# Install torchvision. It comes with the pytorch stable release binary
11conda install pytorch torchvision -c pytorch
12
13# Install the latest pytorch master from source.
14# It should supersede the installation from the release binary.
15cd $PYTORCH_HOME
16python setup.py build develop
17
18# Check the pytorch installation version
19python -c "import torch; print(torch.__version__)"
20```
21
22## Benchmark List
23
24Please refer to each subfolder to discover each benchmark suite. Links are provided where descriptions exist:
25
26* [Fast RNNs](fastrnns/README.md)
27* [Dynamo](dynamo/README.md)
28* [Functional autograd](functional_autograd_benchmark/README.md)
29* [Instruction counts](instruction_counts/README.md)
30* [Operator](operator_benchmark/README.md)
31* [Overrides](overrides_benchmark/README.md)
32* [Sparse](sparse/README.md)
33* [Tensor expression](tensorexpr/HowToRun.md)
34