Skip to content

[gRPC] Extract gRPC servicer into standalone package - #20478

Merged
slin1237 merged 2 commits into
mainfrom
slin/grpc-servicer
Mar 13, 2026
Merged

slin1237 merged 2 commits into
mainfrom
slin/grpc-servicer

Conversation

@slin1237

Copy link
Copy Markdown
Collaborator

Summary

  • Move gRPC server implementation (servicer, request manager, health servicer, scheduler launcher, utils) into a standalone package
  • Replace grpc_server.py with a thin import shim that delegates to the external package
  • Update all pyproject files to use the consolidated dependency and remove now-transitive grpc dependencies

Test plan

  • python -m sglang.launch_server --grpc-mode starts successfully
  • gRPC health check returns SERVING
  • All existing gRPC tests pass

Move gRPC server implementation (servicer, request manager, health
servicer, scheduler launcher, utils) into the smg-grpc-servicer
package. Replace grpc_server.py with a thin import shim that
delegates to the external package.

Update all pyproject files to depend on smg-grpc-servicer[sglang]
and remove now-transitive grpc dependencies.

Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file npu labels Mar 12, 2026
@slin1237

Copy link
Copy Markdown
Collaborator Author

/tag-run-ci-label

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Mar 12, 2026
@slin1237

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

sglang dev version (0.0.0.dev1) doesn't satisfy the sglang>=0.5.9
constraint in the [sglang] extra. The base package includes all
servicer code; sglang is already present at runtime.

Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
@slin1237
slin1237 merged commit 654fc02 into main Mar 13, 2026
96 of 110 checks passed
@slin1237
slin1237 deleted the slin/grpc-servicer branch March 13, 2026 16:13
Wangzheee pushed a commit to Wangzheee/sglang that referenced this pull request Mar 21, 2026
Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
CatherineSue added a commit to smg-project/smg that referenced this pull request Mar 31, 2026
The old sglang built-in grpc_server.py references EmbedError/EmbedComplete
proto types that were removed in our proto cleanup. v0.5.10rc0 includes
sgl-project/sglang#20478 which migrates to smg_grpc_servicer.

TODO: revert to "sglang[all]" once a stable >= 0.5.10 is released.
Signed-off-by: Chang Su <chang.s.su@oracle.com>
CatherineSue added a commit to smg-project/smg that referenced this pull request Apr 1, 2026
The old sglang built-in grpc_server.py references EmbedError/EmbedComplete
proto types that were removed in our proto cleanup. v0.5.10rc0 includes
sgl-project/sglang#20478 which migrates to smg_grpc_servicer.

TODO: revert to "sglang[all]" once a stable >= 0.5.10 is released.
Signed-off-by: Chang Su <chang.s.su@oracle.com>
JustinTong0323 pushed a commit to JustinTong0323/sglang that referenced this pull request Apr 7, 2026
Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file npu run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant