Skip to content

Commit f8bd2db

Browse files
committed
add uuid to rollout log
1 parent 107470a commit f8bd2db

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

applications/ColossalChat/coati/distributed/launch.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def launch_distributed(
5656
eval_save_dir: Optional[str] = None,
5757
eval_generation_config: Optional[Dict[str, Any]] = None,
5858
log_rollout_interval: int = 20,
59-
rollout_log_file: str = "./rollout_log.jsonl",
59+
rollout_save_dir: str = "./rollout",
6060
):
6161
if core_algo not in ALGO_MAP:
6262
raise NotImplementedError(f"{core_algo} is not supported yet.")
@@ -74,6 +74,10 @@ def launch_distributed(
7474

7575
run_name = f"{inference_backend}_bs_{train_batch_size * train_dp_size}_temp_{generate_config['temperature']:.01f}_top_p_{generate_config['top_p']:.02f}"
7676
wandb_group_name = str(uuid.uuid4())
77+
rollout_log_file = os.path.join(
78+
rollout_save_dir,
79+
f"{project_name.replace(' ','_')}_run_{wandb_group_name}.jsonl",
80+
)
7781

7882
procs = []
7983
for i in range(num_producers):

applications/ColossalChat/rl_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,5 +273,5 @@
273273
eval_save_dir=os.path.join(args.eval_save_dir, args.project.replace(" ", "_")),
274274
eval_generation_config=eval_generation_config,
275275
log_rollout_interval=20,
276-
rollout_log_file=os.path.join(args.rollout_save_dir, args.project.replace(" ", "_") + ".jsonl"),
276+
rollout_save_dir=args.rollout_save_dir,
277277
)

0 commit comments

Comments
 (0)