mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Added torchao nightly workflow (#128152)
Summary: Add torchao benchmark workflow, upload the artifacts to GHA. X-link: https://github.com/pytorch/benchmark/pull/2273 Test Plan: ``` python run_benchmark.py torchao --ci ``` Differential Revision: D58140479 Pulled By: xuzhao9 Pull Request resolved: https://github.com/pytorch/pytorch/pull/128152 Approved by: https://github.com/jerryzh168
This commit is contained in:
committed by
PyTorch MergeBot
parent
0c7f4353e5
commit
82d7a36a27
@ -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(
|
||||
|
Reference in New Issue
Block a user