Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Sep 3, 2024
1 parent a68ca56 commit 66efb3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions realhf/experiments/benchmark/profile_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,23 @@ def initial_setup(self) -> List[ExperimentConfig]:
f"will be saved to: {setup_log_path}"
)
with open(setup_log_path, "w") as f:
# batch size in the most outer loop to delay the possible OOM error
for (
bs,
pcfg,
n_mbs,
model_cfg,
dataset_cfg,
handle_name,
interface_cfg,
bs,
) in itertools.product(
self.batch_sizes,
self.parallel_kwargs,
self.n_mbs,
self.model_kwargs,
self.dataset_kwargs,
self.handle_names,
self.interface_kwargs,
self.batch_sizes,
):
if handle_name == "generate" and pcfg["use_sequence_parallel"]:
continue
Expand Down

0 comments on commit 66efb3e

Please sign in to comment.