mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 17:17:05 +00:00
[nfc] fix typo colossalai/cli fx kernel (#3847)
* fix typo colossalai/autochunk auto_parallel amp * fix typo colossalai/auto_parallel nn utils etc. * fix typo colossalai/auto_parallel autochunk fx/passes etc. * fix typo docs/ * change placememt_policy to placement_policy in docs/ and examples/ * fix typo colossalai/ applications/ * fix typo colossalai/cli fx kernel
This commit is contained in:
@@ -28,7 +28,7 @@ from .run import launch_multi_processes
|
||||
type=str,
|
||||
default=None,
|
||||
help=
|
||||
"Specify computing devices to NOT use during execution. Mutually exclusive with --include. Formatting is the same as --includ,"
|
||||
"Specify computing devices to NOT use during execution. Mutually exclusive with --include. Formatting is the same as --include,"
|
||||
" only effective when used with --hostfile.")
|
||||
@click.option("--num_nodes",
|
||||
type=int,
|
||||
|
@@ -38,7 +38,7 @@ class HostInfo:
|
||||
|
||||
# socket.getfqdn("127.0.0.1") does not return localhost
|
||||
# on some users' machines
|
||||
# thus, we directly return True if hostname is locahost, 127.0.0.1 or 0.0.0.0
|
||||
# thus, we directly return True if hostname is localhost, 127.0.0.1 or 0.0.0.0
|
||||
if hostname in ("localhost", "127.0.0.1", "0.0.0.0"):
|
||||
return True
|
||||
|
||||
|
@@ -114,7 +114,7 @@ class MultiNodeRunner:
|
||||
Receive messages from all hosts
|
||||
|
||||
Returns:
|
||||
msg_from_node (dict): a dictionry which contains messages from each node
|
||||
msg_from_node (dict): a dictionary which contains messages from each node
|
||||
"""
|
||||
|
||||
msg_from_node = dict()
|
||||
|
@@ -298,7 +298,7 @@ def launch_multi_processes(args: Config) -> None:
|
||||
# receive the stop status
|
||||
msg_from_node = runner.recv_from_all()
|
||||
|
||||
# printe node status
|
||||
# print node status
|
||||
click.echo("\n====== Stopping All Nodes =====")
|
||||
for hostname, msg in msg_from_node.items():
|
||||
click.echo(f"{hostname}: {msg}")
|
||||
|
Reference in New Issue
Block a user