-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify CLI args validation and ensure CLI args take precedence over…
… config file. (#2757) * Remove unnecessary args.debug statement * Add expected test failure for config sub-sections * Remove redundancy in config file args parsing * Make config file --cpu logic more explicit
- Loading branch information
Showing
8 changed files
with
109 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
compute_environment: LOCAL_MACHINE | ||
debug: true | ||
num_processes: 1 | ||
distributed_type: 'NO' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
compute_environment: LOCAL_MACHINE | ||
deepspeed_config: {} | ||
distributed_type: 'NO' | ||
downcast_bf16: 'no' | ||
fsdp_config: {} | ||
gpu_ids: all | ||
machine_rank: 0 | ||
main_process_ip: null | ||
main_process_port: null | ||
main_training_function: main | ||
megatron_lm_config: {} | ||
mixed_precision: 'no' | ||
num_machines: 1 | ||
num_processes: 1 | ||
rdzv_backend: static | ||
same_network: true | ||
use_cpu: false | ||
tpu_name: 'test-tpu' | ||
tpu_zone: 'us-central1-a' | ||
commands: null | ||
command_file: tests/test_samples/test_command_file.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
compute_environment: LOCAL_MACHINE | ||
distributed_type: MEGATRON_LM | ||
num_processes: 1 | ||
fsdp_config: | ||
x: 1 | ||
fsdp_sync_module_states: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
compute_environment: LOCAL_MACHINE | ||
debug: True | ||
num_processes: 1 | ||
distributed_type: 'NO' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
compute_environment: LOCAL_MACHINE | ||
distributed_type: MEGATRON_LM | ||
num_processes: 1 | ||
megatron_lm_config: | ||
megatron_lm_recompute_activations: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
compute_environment: LOCAL_MACHINE | ||
debug: true | ||
num_processes: 1 | ||
distributed_type: 'NO' |