Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Aug 28, 2024
1 parent 11e0e7a commit 2c07b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion realhf/experiments/common/gen_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ def rpcs(self):
# Customized dataclass objects will not work in that case.
interface = ModelInterfaceAbstraction(
"generation",
args={"generation_config": OmegaConf.to_container(self.gen, resolve=True), "output_file": self.output_file},
args={
"generation_config": OmegaConf.to_container(self.gen, resolve=True),
"output_file": self.output_file,
},
)
gen = MFCDef(
name="gen",
Expand Down
4 changes: 1 addition & 3 deletions realhf/system/master_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,9 +1366,7 @@ def _poll(self):
"evaluate",
[None for _ in self.__all_model_handlers],
)
eval_stats = _gather_stat(
list(filter(lambda x: bool(x), eval_stats))
)
eval_stats = _gather_stat(list(filter(lambda x: bool(x), eval_stats)))
logger.info(
f"Evaluation results at epoch {self._epoch} step {self._epoch_step}: {eval_stats}"
)
Expand Down

0 comments on commit 2c07b88

Please sign in to comment.