Skip to content
Snippets Groups Projects
Commit 0337201c authored by chenhaozhe's avatar chenhaozhe
Browse files

remove redundant pprint

parent a51a3901
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,6 @@ def get_config():
help="Config file path")
path_args, _ = parser.parse_known_args()
default, helper, choices = parse_yaml(path_args.config_path)
pprint(default)
args = parse_cli_to_yaml(parser=parser, cfg=default, helper=helper, choices=choices, cfg_path=path_args.config_path)
final_config = merge(args, default)
pprint(final_config)
......
......@@ -126,7 +126,6 @@ def get_config():
final_config = merge(args, default)
pprint(final_config)
print("Please check the above information for the configurations", flush=True)
pprint(final_config)
return Config(final_config)
config = get_config()
......@@ -207,13 +207,12 @@ def get_config():
default, helper, choices = parse_yaml(path_args.config_path)
args = parse_cli_to_yaml(parser=parser, cfg=default, helper=helper, choices=choices, cfg_path=path_args.config_path)
final_config = merge(args, default)
pprint(final_config)
print("Please check the above information for the configurations", flush=True)
configs = Config(final_config)
configs.limbs_point = limbs_point
configs.joint_indices = joint_indices
pprint(configs)
pprint("Please check the above information for the configurations")
return configs
......
......@@ -48,6 +48,6 @@ hccl_[server_count]s_[rank_size]p.json
Please note that, the server order in the output config file comes from the order of input file list.
For example, running `python merge_hccl.py hccl_1.json hccl_2.json`. The 8 devices in hccl_1.json will be rank 0~7, and the 8 devices in hccl_2.json will be rank 8~15.
For example, running `python merge_hccl.py hccl_1.json hccl_2.json`. The 8 devices in hccl_1.json will be rank `0~7`, and the 8 devices in hccl_2.json will be rank `8~15`.
While running with wildcard, the exact order is not determined, which is decided by the system. Usually this will result in dictionary order just like `ls` command, but we still suggest you check the result carefully if the order does matter in your situation.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment