Skip to content

Commit

Permalink
Partial revert of monitor_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog committed Oct 7, 2024
1 parent 7ff4db3 commit 2c13752
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions milabench/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
config_global = contextvars.ContextVar("config", default=None)
execution_count = (0, 0)

_MONITOR_TAGS = {"monogpu", "multigpu", "multinode"}


def set_run_count(total_run, total_bench):
global execution_count
Expand Down Expand Up @@ -93,13 +91,6 @@ def finalize_config(name, bench_config):
pack = (XPath(bench_config["config_base"]) / pack).resolve()
bench_config["definition"] = str(pack)

if not name.startswith("_") and name != "*":
_tags = set(bench_config["tags"])
_monitor_tags = _tags & _MONITOR_TAGS
assert len(_monitor_tags) == 1, (
f"Bench {name} should have exactly one monitor tag. Found {_monitor_tags}"
)

bench_config["tag"] = [bench_config["name"]]

bench_config = OmegaConf.to_object(OmegaConf.create(bench_config))
Expand Down

0 comments on commit 2c13752

Please sign in to comment.