Skip to content

Commit

Permalink
Added torchao nightly workflow (pytorch#128152)
Browse files Browse the repository at this point in the history
Summary:
Add torchao benchmark workflow, upload the artifacts to GHA.

X-link: pytorch/benchmark#2273

Test Plan:
```
python run_benchmark.py torchao --ci
```

Differential Revision: D58140479

Pulled By: xuzhao9

Pull Request resolved: pytorch#128152
Approved by: https://github.com/jerryzh168
  • Loading branch information
xuzhao9 authored and TharinduRusira committed Jun 14, 2024
1 parent 09c50b6 commit 114f1f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions benchmarks/dynamo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3975,9 +3975,12 @@ def run(runner, args, original_dir=None):
assert "cuda" in args.devices, "Quantization requires CUDA device."
assert args.bfloat16, "Quantization requires dtype bfloat16."
try:
from .torchao_backend import setup_baseline, torchao_optimize_ctx
except ImportError:
from torchao_backend import setup_baseline, torchao_optimize_ctx
except ImportError:
from userbenchmark.dynamo.dynamobench.torchao_backend import (
setup_baseline,
torchao_optimize_ctx,
)

setup_baseline()
baseline_ctx = functools.partial(
Expand Down

0 comments on commit 114f1f0

Please sign in to comment.