Skip to content

Commit

Permalink
Run all TIMM tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Jun 5, 2024
1 parent 3bc41ac commit 1529241
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions userbenchmark/torchao/run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import argparse
import subprocess

from userbenchmark.utils import get_output_dir
from typing import List
Expand All @@ -12,9 +11,9 @@
CI_ARGS = [
# TIMM
["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "noquant", "--output", f"{str(OUTPUT_DIR.joinpath('torchao_noquant_timm_models_bfloat16_inference_cuda_performance.csv').resolve())}"],
# ["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "int8dynamic", "--output", ".userbenchmark/torchao/torchao_int8dynamic_timm_models_bfloat16_inference_cuda_performance.csv"],
# ["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "int8weightonly", "--output", ".userbenchmark/torchao/torchao_int8weightonly_timm_models_bfloat16_inference_cuda_performance.csv"],
# ["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "autoquant", "--output", ".userbenchmark/torchao/torchao_autoquant_timm_models_bfloat16_inference_cuda_performance.csv"],
["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "int8dynamic", "--output", f"{str(OUTPUT_DIR.joinpath('.userbenchmark/torchao/torchao_int8dynamic_timm_models_bfloat16_inference_cuda_performance.csv').resolve())}"],
["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "int8weightonly", "--output", f"{str(OUTPUT_DIR.joinpath('.userbenchmark/torchao/torchao_int8weightonly_timm_models_bfloat16_inference_cuda_performance.csv').resolve())}"],
["--progress", "--timm", "--performance", "--inference", "--bfloat16", "--quantization", "autoquant", "--output", f"{str(OUTPUT_DIR.joinpath('.userbenchmark/torchao/torchao_autoquant_timm_models_bfloat16_inference_cuda_performance.csv').resolve())}"],
]


Expand All @@ -28,6 +27,7 @@ def _get_output(pt2_args):

def _run_pt2_args(pt2_args: List[str]) -> str:
from userbenchmark.dynamo.run import run as run_pt2_benchmark
print(f"=================== [TORCHAO] Running PT2 Benchmark Runner with Args: {pt2_args} ===================")
run_pt2_benchmark(pt2_args)
return _get_output(pt2_args)

Expand Down

0 comments on commit 1529241

Please sign in to comment.