File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
applications/ColossalChat/coati/distributed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def loop(self) -> None:
180
180
break
181
181
if self .eval_interval > 0 and self .eval_dataset_config is not None :
182
182
if (
183
- self .consumer_global_step % self .eval_interval == 0
183
+ self .consumer_global_step - self .lastest_eval_step >= self . eval_interval
184
184
and self .consumer_global_step > self .lastest_eval_step
185
185
):
186
186
to_log_msg = {}
@@ -256,6 +256,8 @@ def loop(self) -> None:
256
256
state_dict = ray_broadcast_tensor_dict (
257
257
None , self .num_producers , device = self .device , group_name = f"sync_model_{ pp_idx } "
258
258
)
259
+ if "consumer_global_step" in state_dict :
260
+ self .consumer_global_step = state_dict .pop ("consumer_global_step" ).item ()
259
261
self .load_state_dict (state_dict )
260
262
else :
261
263
print (
You can’t perform that action at this time.
0 commit comments