This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compute_environment: LOCAL_MACHINE | |
debug: false | |
distributed_type: MULTI_GPU | |
downcast_bf16: 'no' | |
gpu_ids: all | |
machine_rank: 0 | |
main_training_function: main | |
mixed_precision: bf16 | |
num_machines: 1 | |
num_processes: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CountDownLatch { | |
private Integer size; | |
private final Object lock = new Object(); | |
public CountDownLatch(int n) { | |
assert(n > 0); | |
this.size = n; | |
} | |
public void await() { |