[Network] Use NetworkAddress for dist_init_method and loopback fallbacks (#20657)
Co-authored-by: hnyls2002 <lsyincs@gmail.com>
This commit is contained in:
@@ -288,7 +288,8 @@ class DataParallelController:
|
||||
# Determine the endpoint for inter-node communication
|
||||
if server_args.dist_init_addr is None:
|
||||
na = NetworkAddress(
|
||||
"127.0.0.1", server_args.port + DP_ATTENTION_HANDSHAKE_PORT_DELTA
|
||||
server_args.host or "127.0.0.1",
|
||||
server_args.port + DP_ATTENTION_HANDSHAKE_PORT_DELTA,
|
||||
)
|
||||
else:
|
||||
na = NetworkAddress.parse(server_args.dist_init_addr)
|
||||
|
||||
Reference in New Issue
Block a user