Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
8e22c38b
Unverified
Commit
8e22c38b
authored
Dec 26, 2022
by
Tongping Liu
Committed by
GitHub
Dec 27, 2022
Browse files
[hotfix] Fixing the bug related to ipv6 support
Co-authored-by:
ByteDance
<
tongping.liu@bytedance.com
>
parent
ac85a180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/context/parallel_context.py
colossalai/context/parallel_context.py
+1
-1
No files found.
colossalai/context/parallel_context.py
View file @
8e22c38b
...
@@ -370,7 +370,7 @@ class ParallelContext(metaclass=SingletonMeta):
...
@@ -370,7 +370,7 @@ class ParallelContext(metaclass=SingletonMeta):
port (str): the master port for distributed training
port (str): the master port for distributed training
"""
"""
# initialize the default process group
# initialize the default process group
init_method
=
f
'tcp://
{
host
}
:
{
port
}
'
init_method
=
f
'tcp://
[
{
host
}
]
:
{
port
}
'
dist
.
init_process_group
(
rank
=
rank
,
world_size
=
world_size
,
backend
=
backend
,
init_method
=
init_method
)
dist
.
init_process_group
(
rank
=
rank
,
world_size
=
world_size
,
backend
=
backend
,
init_method
=
init_method
)
# None will give the default global process group for pytorch dist operations
# None will give the default global process group for pytorch dist operations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment