File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
aiu_fms_testing_utils/scripts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,6 @@ def get_distributed_kwargs(
349349 aiu_dist_setup (dist .get_rank (), dist .get_world_size ())
350350 distributed_kwargs ["distributed_strategy" ] = "tp"
351351 distributed_kwargs ["group" ] = dist .group .WORLD
352- save_validation_info_outputs = save_validation_info_outputs and (
353- dist .get_rank () == 0
354- )
355352
356353 return distributed_kwargs
357354
@@ -812,6 +809,9 @@ def main():
812809 distributed_kwargs = get_distributed_kwargs (
813810 args .distributed , args .dist_timeout , args .save_validation_info_outputs
814811 )
812+ args .save_validation_info_outputs = args .save_validation_info_outputs and (
813+ dist .get_rank () == 0
814+ )
815815
816816 model = load_model (
817817 device_type = "cpu" ,
You can’t perform that action at this time.
0 commit comments