Skip to content

fix(sglang): [cherry-pick 1.5.0] stop GPU Memory Service workers crashing at startup (#14360) - #14527

Merged
pvijayakrish merged 1 commit into
release/1.5.0from
cursor/cherrypick-14360-release-150-0698
Sep 9, 2026
Merged

pvijayakrish merged 1 commit into
release/1.5.0from
cursor/cherrypick-14360-release-150-0698

Conversation

@galletas1712

Copy link
Copy Markdown
Contributor

Overview

Backports #14360 to release/1.5.0 so GPU Memory Service workers start successfully with SGLang 0.5.18.

SGLang 0.5.18 makes ServerArgs fields read-only after resolution. The fix enables memory saver through SGLang's public late-resolution API instead of failing on direct assignment during worker startup.

Details

  • enable SGLang memory saver through the public declare_late_resolution API
  • retain the SGLang 0.5.17 ServerArgs.override fallback and legacy SGLang 0.5.11/XPU direct-assignment fallback
  • preserve the public setup_gms() contract that automatically enables memory saver
  • carry focused regression coverage for all three supported configuration paths
  • remove the stale usage example that called ServerArgs.override on pinned SGLang 0.5.18

This is a clean cherry-pick of merged commit 45e711149 as 28a195aed. The stable patch ID matches the source commit exactly.

Where should the reviewer start?

  1. lib/gpu_memory_service/integrations/sglang/__init__.py — the public-first compatibility ladder in setup_gms()
  2. components/src/dynamo/sglang/tests/test_sglang_gms_memory_saver.py — the focused regression cases

Related Issues

Validation

Backport verification

Original fix validation

  • python -m pytest -v components/src/dynamo/sglang/tests/test_sglang_gms_memory_saver.py — 15 passed
  • python -m pytest -v -k setup_gms components/src/dynamo/sglang/tests/test_sglang_gms_memory_saver.py — 3 passed
  • python -m pytest -v lib/gpu_memory_service/tests/test_sglang_patches.py — 2 passed
  • python -m pytest -q lib/gpu_memory_service/tests — 99 passed, 1 skipped
  • pre-commit, Black, Ruff lint/format, mypy, py_compile, and git diff --check — passed
  • nightly GMS pause/resume and shadow-engine failover tests passed on NVIDIA B200 with SGLang 0.5.18

Release-branch CI will provide branch-specific test coverage.

…GLang 0.5.18 (#14360)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Schwinn Saereesitthipitak <[email protected]>
Co-authored-by: Schwinn Saereesitthipitak <[email protected]>
(cherry picked from commit 45e7111)
Signed-off-by: Cursor Agent <[email protected]>
@galletas1712
galletas1712 requested review from a team as code owners September 9, 2026 05:17
@copy-pr-bot

copy-pr-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added fix backend::sglang Relates to the sglang backend labels Sep 9, 2026
@pvijayakrish
pvijayakrish merged commit f885dde into release/1.5.0 Sep 9, 2026
23 of 24 checks passed
@pvijayakrish
pvijayakrish deleted the cursor/cherrypick-14360-release-150-0698 branch September 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::sglang Relates to the sglang backend fix size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants