Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0dc72273
Unverified
Commit
0dc72273
authored
Mar 26, 2024
by
Nick Hill
Committed by
GitHub
Mar 26, 2024
Browse files
[BugFix] Fix ipv4 address parsing regression (#3645)
parent
a979d977
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/utils.py
vllm/utils.py
+3
-1
No files found.
vllm/utils.py
View file @
0dc72273
...
...
@@ -205,7 +205,9 @@ def get_ip() -> str:
def
get_distributed_init_method
(
ip
:
str
,
port
:
int
)
->
str
:
return
f
"tcp://[
{
ip
}
]:
{
port
}
"
# Brackets are not permitted in ipv4 addresses,
# see https://github.com/python/cpython/issues/103848
return
f
"tcp://[
{
ip
}
]:
{
port
}
"
if
":"
in
ip
else
f
"tcp://
{
ip
}
:
{
port
}
"
def
get_open_port
()
->
int
:
...
...
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