Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Fix Hydra 1.1 upgrade issue for Fast ACUTEs #4043

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion parlai/crowdsourcing/tasks/acute_eval/fast_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from mephisto.operations.hydra_config import register_script_config
from mephisto.operations.operator import Operator
from mephisto.tools.scripts import load_db_and_process_config
from omegaconf import DictConfig
from omegaconf import DictConfig, OmegaConf

from parlai.crowdsourcing.tasks.acute_eval.analysis import (
AcuteAnalyzer,
Expand Down Expand Up @@ -478,6 +478,7 @@ def run_acute_eval(self):
self.set_up_acute_eval()
db, cfg = load_db_and_process_config(self.args)
print(f'*** RUN ID: {cfg.mephisto.task.task_name} ***')
print(f'\nHydra config:\n{OmegaConf.to_yaml(cfg)}')
operator = Operator(db)
operator.validate_and_run_config(run_config=cfg.mephisto, shared_state=None)
operator.wait_for_runs_then_shutdown(
Expand Down Expand Up @@ -547,6 +548,7 @@ def analyze_results(self, args: Optional[str] = None):


defaults = [
'_self_',
{"mephisto/blueprint": FAST_ACUTE_BLUEPRINT_TYPE},
{"mephisto/architect": "local"},
{"mephisto/provider": "mock"},
Expand Down