Improve dp attention port assignment scheme (#5889)
Co-authored-by: Cheng Wan <cwan@x.ai>
This commit is contained in:
@@ -75,7 +75,8 @@ class TestPortArgs(unittest.TestCase):
|
||||
server_args.nnodes = 1
|
||||
server_args.dist_init_addr = "192.168.1.1:25000"
|
||||
|
||||
port_args = PortArgs.init_new(server_args, dp_rank=2)
|
||||
worker_ports = [25006, 25007, 25008, 25009]
|
||||
port_args = PortArgs.init_new(server_args, dp_rank=2, worker_ports=worker_ports)
|
||||
|
||||
self.assertTrue(port_args.scheduler_input_ipc_name.endswith(":25008"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user