mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-02-04 18:21:52 +08:00
Signed-off-by: Evgueni Petrov <evgueni.s.petrov@gmail.com>
This commit is contained in:
parent
bae2fac834
commit
f25a2c53bb
@ -186,7 +186,11 @@ def launch_server(
|
||||
|
||||
backend = llm_args["backend"]
|
||||
model = llm_args["model"]
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
addr_info = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
|
||||
socket.SOCK_STREAM)
|
||||
address_family = socket.AF_INET6 if all(
|
||||
[info[0] == socket.AF_INET6 for info in addr_info]) else socket.AF_INET
|
||||
with socket.socket(address_family, socket.SOCK_STREAM) as s:
|
||||
# If disagg cluster config is provided and port is not specified, try to find a free port, otherwise try to bind to the specified port
|
||||
assert port > 0 or disagg_cluster_config is not None, "Port must be specified if disagg cluster config is not provided"
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user