pytorch/benchmarks/gpt_fast
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
..
benchmark.py Fix broken gpt_fast micro benchmark after #144315 (#145235) 2025-01-21 17:42:24 +00:00
common.py PEP585 update - benchmarks tools torchgen (#145101) 2025-01-18 05:05:07 +00:00
generate.py Migrate from Tuple -> tuple in benchmarks (#144259) 2025-01-07 04:09:52 +00:00
mixtral_moe_model.py Reduce the number of layers for mixtral moe model to adapt CI memory limitation (#125608) 2024-05-06 21:52:25 +00:00
mixtral_moe_quantize.py Fix unused Python variables outside torch/ and test/ (#136359) 2024-12-11 17:10:23 +00:00
model.py [BE][CI] bump ruff to 0.9.2: multiline assert statements (#144546) 2025-02-27 20:46:16 +00:00
quantize.py Fix unused Python variables outside torch/ and test/ (#136359) 2024-12-11 17:10:23 +00:00