Skip to content

config: the DP/EP topology reads come from the parallel bag - #35025

Merged
ch-wan merged 1 commit into
mainfrom
cheng/gc-s12-4-topology-bags
Aug 17, 2026
Merged

ch-wan merged 1 commit into
mainfrom
cheng/gc-s12-4-topology-bags

Conversation

@ch-wan

@ch-wan ch-wan commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

dp_size, enable_dp_attention and ep_size are resolution outputs: --dwdp-size
derives all three, so a raw record carries the pre-derivation values. Every
reader of the five topology fields now reads the parallel config leaves.

Two processes were reading configuration before they published: the scheduler
ran configure_scheduler_process ahead of its publish, and the launch path
published only once the tokenizer manager was built. Both publish at process
entry now.

The load-snapshot owner decision and the scheduler recv skipper take no config
argument any more -- every caller was handing over the process config. Their
tests publish a config instead of injecting a stand-in object.

The exposure pin drops 39 pairs on axis 1 and 19 on axis 2.


CI States

Latest PR Test (Base): 🚫 Run #32079795399
Latest PR Test (Extra): 🚫 Run #32079795182

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f90fdcd4c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

process owns the socket (polls zmq -> SHM) and every worker reads SHM.
"""
if server_args.tokenizer_worker_num > 1:
if get_serving().tokenizer_worker_num > 1:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid serving-bag reads in the DP controller

When SGLANG_ROLE_NAMESPACES=enforce and ZMQ snapshots are active (multi-node DP attention or SGLANG_LOAD_SNAPSHOT_USE_ZMQ=1), DataParallelController calls this helper after publishing the dp_controller role. get_serving() then raises because runtime_context.py declares that role's allowed namespaces as only {"exec"}, so the controller fails during startup before creating its snapshot reader. Either avoid consulting the tokenizer owner for the DataParallelController caller or explicitly make the serving namespace part of that role's supported contract.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed and fixed in cef7951: zmq_reader_owner now answers the DataParallelController caller from parallel-namespace leaves alone, so the controller path no longer reads the serving bag and its role set stays {"exec"}. An enforce-mode regression test in test/registered/unit/managers/test_load_snapshot_backends.py runs the owner check under SGLANG_ROLE_NAMESPACES=enforce for the controller caller.

@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from e379947 to b541fda Compare August 16, 2026 16:34
@ch-wan
ch-wan requested a review from sundar24295s as a code owner August 16, 2026 16:34
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from cef7951 to c0c33cb Compare August 16, 2026 23:34
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from 68a1e42 to d01b96c Compare August 17, 2026 04:40
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from c0c33cb to 3b348b0 Compare August 17, 2026 04:40
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from d01b96c to a32135d Compare August 17, 2026 06:33
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from 3b348b0 to da39733 Compare August 17, 2026 06:33
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from a32135d to d9dd66f Compare August 17, 2026 08:42
@ch-wan
ch-wan requested a review from Duyi-Wang as a code owner August 17, 2026 08:42
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from da39733 to 9b2b9c2 Compare August 17, 2026 08:42
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from d9dd66f to 7c68e7d Compare August 17, 2026 10:00
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from 9b2b9c2 to bb69559 Compare August 17, 2026 10:00
@ch-wan ch-wan added the ready-to-merge The PR is ready to merge after the CI is green. label Aug 17, 2026
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from 7c68e7d to 518d41c Compare August 17, 2026 10:46
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from bb69559 to 7e9ba02 Compare August 17, 2026 10:46
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from 518d41c to 587d82d Compare August 17, 2026 11:07
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch 2 times, most recently from 5ba3b9b to a6dc02f Compare August 17, 2026 18:55
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from 587d82d to afa022d Compare August 17, 2026 19:10
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from a6dc02f to ddae0f2 Compare August 17, 2026 19:10
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from afa022d to ae3a7b2 Compare August 17, 2026 23:01
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from ddae0f2 to e15a852 Compare August 17, 2026 23:01
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from ae3a7b2 to da7c428 Compare August 17, 2026 23:15
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from e15a852 to ff264bc Compare August 17, 2026 23:15
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from da7c428 to 915adcc Compare August 17, 2026 23:16
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from ff264bc to c4f7689 Compare August 17, 2026 23:16
@ch-wan
ch-wan force-pushed the cheng/gc-s12-3-adaptive-spec-sizing branch from 915adcc to abe26a6 Compare August 17, 2026 23:16
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from c4f7689 to bbefd69 Compare August 17, 2026 23:16
Base automatically changed from cheng/gc-s12-3-adaptive-spec-sizing to main August 17, 2026 23:16
dp_size, enable_dp_attention and ep_size are resolution outputs: --dwdp-size
derives all three, so a raw record carries the pre-derivation values. Every
reader of the five topology fields now reads the parallel config leaves.

configure_scheduler_process now reads ep_size from the parallel bag, so the
scheduler process's publish must already have run when it is called.

The load-snapshot owner decision and the scheduler recv skipper take no config
argument any more -- every caller was handing over the process config. Their
tests publish a config instead of injecting a stand-in object.

The exposure pin drops 39 pairs on axis 1 and 19 on axis 2.
@ch-wan
ch-wan force-pushed the cheng/gc-s12-4-topology-bags branch from bbefd69 to e12f01b Compare August 17, 2026 23:17
@ch-wan
ch-wan merged commit a97bc8d into main Aug 17, 2026
7 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lora ready-to-merge The PR is ready to merge after the CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant