Skip to content

[Rust] Split and rename embedded server components - #37220

Merged
merrymercy merged 10 commits into
mainfrom
rust-server-cleanup-1-structure
Aug 31, 2026
Merged

merrymercy merged 10 commits into
mainfrom
rust-server-cleanup-1-structure

Conversation

@merrymercy

@merrymercy merrymercy commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Make the embedded Rust server easier to review and maintain without changing its runtime behavior. This is PR 1 of 4 in stack #37223.

Modifications

  • Split template.rs and to_scheduler.rs into flat sibling modules; no nested module directories or mod.rs.
  • Move the Python integration into the multi-file sglang.srt.rust_server package.
  • Rename Rust-MM symbols and APIs (RustMmProcessor, take_mm_result, stage_channel_cap) and update tests/docs.
  • Group MmEncodeResult fields and improve its comments.
  • Group SamplingParams declarations by purpose without changing wire order.
  • Add rust/sglang-server/README.md.
  • Keep RustServerServerArgs unchanged.

Test plan

  • cargo test --manifest-path rust/sglang-server/Cargo.toml --lib
  • cargo test --manifest-path rust/sglang-mm/Cargo.toml --lib
  • cargo clippy --manifest-path rust/sglang-server/Cargo.toml --lib --tests -- -D warnings
  • Rustfmt, Ruff targeted checks, Isort, and Python bytecode compilation
  • Focused registered tests are triggered in a PR comment.

Stack

No model-output or performance behavior is intended to change.


CI States

Latest PR Test (Base): 🚫 Run #33374105565
Latest PR Test (Extra): ❌ Run #33374127585
Latest PR Test (AMD ROCm 7.2): ❌ Run #33374105421

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file Multi-modal multi-modal language model labels Aug 31, 2026
@merrymercy merrymercy changed the title rust server cleanup 1 structure [Rust] Split and rename embedded server components Aug 31, 2026
@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py:

🚀 ubuntu-latest (1 test): ❌ View workflow run

cd test/ && python3 registered/rust/test_run_rust_tests.py

🚀 1-gpu-5090 (1 test): ❌ View workflow run

cd test/ && python3 registered/core/test_srt_endpoint.py

🚀 1-gpu-h100 (2 tests): ⏳ View workflow run

cd test/ && python3 registered/vlm/test_rust_native_mm_e2e.py
cd test/ && python3 registered/vlm/test_rust_native_mm_mmmu.py

@merrymercy merrymercy left a comment

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.

approve

@merrymercy merrymercy added the run-ci CI: run the baseline test suite on this PR label Aug 31, 2026
@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py:

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/rust/test_run_rust_tests.py

🚀 1-gpu-5090 (1 test): ✅ View workflow run

cd test/ && python3 registered/core/test_srt_endpoint.py

🚀 1-gpu-h100 (2 tests): ✅ View workflow run

cd test/ && python3 registered/vlm/test_rust_native_mm_e2e.py
cd test/ && python3 registered/vlm/test_rust_native_mm_mmmu.py

@merrymercy

Copy link
Copy Markdown
Collaborator Author

approve

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/rust/test_run_rust_tests.py test/registered/core/test_srt_endpoint.py test/registered/vlm/test_rust_native_mm_e2e.py test/registered/vlm/test_rust_native_mm_mmmu.py:

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/rust/test_run_rust_tests.py

🚀 1-gpu-5090 (1 test): ❌ View workflow run

cd test/ && python3 registered/core/test_srt_endpoint.py

🚀 1-gpu-h100 (2 tests): ❌ View workflow run

cd test/ && python3 registered/vlm/test_rust_native_mm_e2e.py
cd test/ && python3 registered/vlm/test_rust_native_mm_mmmu.py

@merrymercy
merrymercy merged commit 1da86b9 into main Aug 31, 2026
185 of 217 checks passed
@merrymercy
merrymercy deleted the rust-server-cleanup-1-structure branch August 31, 2026 19:28
StevenChenSE pushed a commit to StevenChenSE/sglang that referenced this pull request Sep 6, 2026
sagearc added a commit to sagearc/sglang that referenced this pull request Sep 22, 2026
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 documentation Improvements or additions to documentation Multi-modal multi-modal language model run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants