Skip to content

Commit

Permalink
Added torchao nightly workflow
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
  • Loading branch information
xuzhao9 authored and facebook-github-bot committed Jun 6, 2024
1 parent de4f8b9 commit b820313
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 @@ -3974,9 +3974,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 b820313

Please sign in to comment.