[Omni Connector] Omni Transfer Engine Connector: Enable 1-receiver-to-N-senders to support Bagel TP/CFG parallel (#2731)
Signed-off-by: natureofnature <wzliu@connect.hku.hk>
This commit is contained in:
1 parent
17acd0589a
commit
6d01a8b506
6 files changed
+422
-87
No files matched your search
@@ -23,6 +23,11 @@ logger = get_connector_logger(__name__)
|
||||
# collide with request-forwarding endpoints that share the same base port.
|
||||
KV_TRANSFER_PORT_OFFSET = 100
|
||||
|
||||
# Port stride between TP ranks so each worker binds a unique ZMQ port
|
||||
# when TP > 1. Must be larger than the maximum number of pipeline stages.
|
||||
# Formula: zmq_port = base + KV_TRANSFER_PORT_OFFSET + rank * STRIDE + stage
|
||||
KV_RANK_PORT_STRIDE = 16
|
||||
|
||||
|
||||
def initialize_connectors_from_config(
|
||||
config_path: str | Path | None = None,
|
||||
|
||||
Reference in new issue
Block a user