Skip to content

fix: set SGLANG_BLOCK_NONZERO_RANK_CHILDREN to be no-op #4527

Merged
ishandhanani merged 2 commits intomainfrom
ishan/whatitdooo
Nov 21, 2025
Merged

fix: set SGLANG_BLOCK_NONZERO_RANK_CHILDREN to be no-op #4527
ishandhanani merged 2 commits intomainfrom
ishan/whatitdooo

Conversation

@ishandhanani
Copy link
Contributor

@ishandhanani ishandhanani commented Nov 21, 2025

Until sgl-project/sglang#13686 goes in, we cannot leverage this env var and combine metrics. Its a bit of a funky race condition that was never caught cause most people don't leverage the engine api for multinode

@ishandhanani ishandhanani requested review from a team as code owners November 21, 2025 03:30
@github-actions github-actions bot added the fix label Nov 21, 2025
@ishandhanani ishandhanani enabled auto-merge (squash) November 21, 2025 03:32
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 21, 2025

Walkthrough

The initialization path now sets the environment variable SGLANG_BLOCK_NONZERO_RANK_CHILDREN to "1" for non-leader nodes (node_rank >= 1), changing from "0". This adjusts blocking behavior during startup for distributed node configurations, accompanied by comments referencing related development work.

Changes

Cohort / File(s) Change Summary
Environment variable initialization
components/src/dynamo/sglang/main.py
Modified SGLANG_BLOCK_NONZERO_RANK_CHILDREN environment variable assignment from "0" to "1" for non-leader nodes during initialization; added comments referencing related development efforts.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Single file, targeted configuration change with clear behavioral intent
  • Consider reviewing the distributed system implications of changing blocking behavior for non-leader nodes
  • Verify that the referenced merge request context is properly documented or resolved

Poem

🐰 A rabbit hops through ranks so fine,
Non-leaders now will block in line,
From zero's way to one's new call,
The startup dance transforms for all! 🌟

Pre-merge checks

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is incomplete and does not follow the provided template structure, missing Overview, Details, Where to start, and Related Issues sections. Complete the PR description by filling in all template sections: provide an overview, explain the changes and motivation, identify key files for review, and link the related sglang PR #13686.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: setting SGLANG_BLOCK_NONZERO_RANK_CHILDREN to be a no-op, which aligns with the code change of setting the environment variable to '1' for non-leader nodes.

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e7544f1 and ede3ef9.

📒 Files selected for processing (1)
  • components/src/dynamo/sglang/main.py (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: operator (amd64)
  • GitHub Check: trtllm (amd64)
  • GitHub Check: vllm (amd64)
  • GitHub Check: Build and Test - dynamo

Copy link
Contributor

@Aphoh Aphoh left a comment

Choose a reason for hiding this comment

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

LGTM

@ishandhanani ishandhanani merged commit 6b43262 into main Nov 21, 2025
31 of 32 checks passed
@ishandhanani ishandhanani deleted the ishan/whatitdooo branch November 21, 2025 06:55
zxue2 pushed a commit to zxue2/dynamo that referenced this pull request Nov 22, 2025
zxue2 pushed a commit to zxue2/dynamo that referenced this pull request Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants