Skip to content

Commit

Permalink
Squash 3645
Browse files Browse the repository at this point in the history
  • Loading branch information
joerunde committed Mar 26, 2024
1 parent abe950a commit 4ea041f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_ip() -> str:


def get_distributed_init_method(ip: str, port: int) -> str:
return f"tcp://[{ip}]:{port}"
return f"tcp://[{ip}]:{port}" if ":" in ip else f"tcp://{ip}:{port}"


def get_open_port() -> int:
Expand Down

0 comments on commit 4ea041f

Please sign in to comment.