[Bugfix] Restore portable all2all backend default (#53952)
Signed-off-by: Kevin Luu <51931015+khluu@users.noreply.github.com> Co-authored-by: Kevin Luu <51931015+khluu@users.noreply.github.com>
This commit is contained in:
@@ -752,6 +752,10 @@ def test_data_parallel_rpc_port_has_fixed_default():
|
|||||||
assert ParallelConfig().data_parallel_rpc_port == 29550
|
assert ParallelConfig().data_parallel_rpc_port == 29550
|
||||||
|
|
||||||
|
|
||||||
|
def test_all2all_backend_has_portable_default():
|
||||||
|
assert ParallelConfig().all2all_backend == "allgather_reducescatter"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("port", [1, 29550, 65535])
|
@pytest.mark.parametrize("port", [1, 29550, 65535])
|
||||||
def test_data_parallel_rpc_port_accepts_valid_ports(port: int):
|
def test_data_parallel_rpc_port_accepts_valid_ports(port: int):
|
||||||
assert ParallelConfig(data_parallel_rpc_port=port).data_parallel_rpc_port == port
|
assert ParallelConfig(data_parallel_rpc_port=port).data_parallel_rpc_port == port
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ class ParallelConfig:
|
|||||||
with 4 experts and 2 ranks, rank 0 will have experts [0, 2] and rank 1
|
with 4 experts and 2 ranks, rank 0 will have experts [0, 2] and rank 1
|
||||||
will have experts [1, 3]. This strategy can help improve load balancing
|
will have experts [1, 3]. This strategy can help improve load balancing
|
||||||
for grouped expert models with no redundant experts."""
|
for grouped expert models with no redundant experts."""
|
||||||
all2all_backend: All2AllBackend = "flashinfer_nvlink_one_sided"
|
all2all_backend: All2AllBackend = "allgather_reducescatter"
|
||||||
"""All2All backend for MoE expert parallel communication. Available options:
|
"""All2All backend for MoE expert parallel communication. Available options:
|
||||||
|
|
||||||
- "allgather_reducescatter": All2all based on allgather and reducescatter
|
- "allgather_reducescatter": All2all based on allgather and reducescatter
|
||||||
|
|||||||
Reference in New Issue
Block a user