Check the topology identities where the layout is written, and build at the published widths (#40340)

This commit is contained in:
Cheng Wan
2026-09-21 12:22:59 -07:00
committed by GitHub
parent d5fdab7022
commit 2d0e94e3a3
43 changed files with 843 additions and 261 deletions
@@ -16,6 +16,7 @@ from sglang.srt.distributed.parallel_state import (
from sglang.srt.layers.attention import vision
from sglang.srt.runtime_context import get_context, get_parallel
from sglang.test.ci.ci_register import register_cpu_ci
from sglang.test.test_utils import publish_build_topology
register_cpu_ci(est_time=12, suite="base-a-test-cpu")
@@ -52,7 +53,8 @@ def gloo_world():
distributed_init_method=f"tcp://127.0.0.1:{port}",
backend="gloo",
)
initialize_model_parallel(tensor_model_parallel_size=1, backend="gloo")
publish_build_topology(tp_size=1)
initialize_model_parallel(backend="gloo")
yield
destroy_model_parallel()
destroy_distributed_environment()