Skip to content

Commit

Permalink
Add run_config
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed May 10, 2024
1 parent 52bdbaa commit 65aac18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion userbenchmark/group_bench/run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def _get_models(models: Optional[List[str]]=None, model_set: Optional[List[str]]=None) -> List[str]:
result = set(models) if models else set()
for s in model_set:
result.add(list_extended_models(s))
result.union(set(list_extended_models(s)))
return list(result)

def config_obj_to_model_configs(config: Dict[str, Any]) -> Dict[str, Dict[str, List[TorchBenchModelConfig]]]:
Expand Down
2 changes: 1 addition & 1 deletion userbenchmark/torch-nightly/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def parse_args(args):
def run(args: List[str]):
args = parse_args(args)
assert os.path.exists(args.config), f"Expect an existing benchmark config file, get path: {args.config}."
benchmark_result = get_output_json(BM_NAME, run_benchmark_group_config(config_file=args.config, dryrun=args.dryrun))
benchmark_result = get_output_json(BM_NAME, run_benchmark_group_config(group_config_file=args.config, dryrun=args.dryrun))
benchmark_result["environ"]["benchmark_style"] = "group_bench"
benchmark_result_json = json.dumps(benchmark_result, indent=4)
with open(args.output, "w") as fp:
Expand Down

0 comments on commit 65aac18

Please sign in to comment.