Yuanyuan Chen
b2953f5643
[9/N] Apply ruff UP035 rule ( #165515 )
...
This is follow-up of #165214 to continue applying ruff UP035 rule to the code base.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/165515
Approved by: https://github.com/Lucaskabela
2025-10-17 00:09:51 +00:00
Boyuan Feng
90b4e130d6
[Benchmark] cleanup torchbench models ( #164816 )
...
Prune models from TorchInductor dashboard to reduce ci cost. This PR prunes torchbench models according to the [doc](https://docs.google.com/document/d/1nLPNNAU-_M9Clx9FMrJ1ycdPxe-xRA54olPnsFzdpoU/edit?tab=t.0 ), which removes timm and huggingface models from torchbench.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164816
Approved by: https://github.com/anijain2305 , https://github.com/seemethere , https://github.com/huydhn , https://github.com/malfet
2025-10-09 00:31:25 +00:00
Oguz Ulgen
a2a75be0f8
Rename inductor cache ( #156128 )
...
Requested by Simon on a different PR
Pull Request resolved: https://github.com/pytorch/pytorch/pull/156128
Approved by: https://github.com/xmfan
2025-06-17 03:57:18 +00:00
Xuehai Pan
c73a92fbf5
[BE][CI] bump ruff to 0.9.2: multiline assert statements ( #144546 )
...
Reference: https://docs.astral.sh/ruff/formatter/black/#assert-statements
> Unlike Black, Ruff prefers breaking the message over breaking the assertion, similar to how both Ruff and Black prefer breaking the assignment value over breaking the assignment target:
>
> ```python
> # Input
> assert (
> len(policy_types) >= priority + num_duplicates
> ), f"This tests needs at least {priority+num_duplicates} many types."
>
>
> # Black
> assert (
> len(policy_types) >= priority + num_duplicates
> ), f"This tests needs at least {priority+num_duplicates} many types."
>
> # Ruff
> assert len(policy_types) >= priority + num_duplicates, (
> f"This tests needs at least {priority + num_duplicates} many types."
> )
> ```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/144546
Approved by: https://github.com/malfet
2025-02-27 20:46:16 +00:00
Oguz Ulgen
bb7e8fbd66
[CacheBench] Add hf_T5 llama moco to cachebench ( #147783 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147783
Approved by: https://github.com/huydhn
ghstack dependencies: #147688 , #147780 , #147781 , #147782
2025-02-25 04:34:45 +00:00
Oguz Ulgen
895564d6b6
[CacheBench] Add huggingface ( #147782 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147782
Approved by: https://github.com/huydhn
ghstack dependencies: #147688 , #147780 , #147781
2025-02-25 04:34:45 +00:00
Oguz Ulgen
c4fb6ae55d
[CacheBench] Separate dynamic into its own option ( #147781 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147781
Approved by: https://github.com/huydhn
ghstack dependencies: #147688 , #147780
2025-02-25 04:34:34 +00:00
Oguz Ulgen
60d4cbfc06
[CacheBench] Add repeat option so that we can have more accurate cache results ( #147780 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147780
Approved by: https://github.com/huydhn
ghstack dependencies: #147688
2025-02-25 04:34:25 +00:00
Oguz Ulgen
ab3b814af3
[CacheBench] Add ciflow/trunk test ( #147688 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147688
Approved by: https://github.com/huydhn
2025-02-25 04:34:16 +00:00
Oguz Ulgen
1c334893dc
[CacheBench] Refactor code to prepare for mode benchmarks ( #147641 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147641
Approved by: https://github.com/huydhn
2025-02-22 00:20:54 +00:00
Oguz Ulgen
a8ce4d1846
Add cachebench ( #147537 )
...
This PR adds a new benchmark called cachebench in order to measure/demonstrate the prowess of PT2 caching.
```
python benchmarks/dynamo/cachebench.py --output="result.json"
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147537
Approved by: https://github.com/jamesjwu
2025-02-21 17:06:45 +00:00