Skip to content

Using UnifiedRadixTree by default for SWA, Mamba, and DSA models - #30468

Merged
hzh0425 merged 7 commits into
sgl-project:mainfrom
hzh0425:hybrid_tree/default-swa-mamba
Jul 14, 2026
Merged

hzh0425 merged 7 commits into
sgl-project:mainfrom
hzh0425:hybrid_tree/default-swa-mamba

Conversation

@hzh0425

@hzh0425 hzh0425 commented Jul 8, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Modifications

Accuracy Tests

Speed Tests and Profiling

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ✅ Run #29237386655
Latest PR Test (Extra): ✅ Run #29237386245

@hzh0425 hzh0425 added the run-ci CI: run the baseline test suite on this PR label Jul 8, 2026
@hzh0425 hzh0425 added the run-ci-extra CI: also run the extra suite (requires run-ci) label Jul 8, 2026
@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!

@hzh0425 hzh0425 added the release-highlight Candidate PR for release note highlight label Jul 8, 2026
@hzh0425

hzh0425 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

/rerun-test test_qwen35_fp4_mtp.py

@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test_qwen35_fp4_mtp.py:

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

cd test/ && python3 registered/models_e2e/test_qwen35_fp4_mtp.py

@hzh0425

hzh0425 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

/rerun-test test_qwen35_fp4_mtp.py test/registered/models_e2e/test_qwen3_next_models_mtp.py

@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test_qwen35_fp4_mtp.py test/registered/models_e2e/test_qwen3_next_models_mtp.py:

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

cd test/ && python3 registered/models_e2e/test_qwen35_fp4_mtp.py

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

cd test/ && python3 registered/models_e2e/test_qwen3_next_models_mtp.py

@hzh0425
hzh0425 force-pushed the hybrid_tree/default-swa-mamba branch from 2eeb0e7 to 2895afe Compare July 10, 2026 15:52
@hzh0425

hzh0425 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py

@github-actions

github-actions Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py:

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

cd test/ && python3 registered/radix_cache/test_int8_mamba_checkpoint_e2e.py

@hzh0425

hzh0425 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author
image All tests have passed

@hzh0425
hzh0425 merged commit afa3c06 into sgl-project:main Jul 14, 2026
303 of 328 checks passed
@Fridge003

Copy link
Copy Markdown
Collaborator

nb!

Jialin added a commit to Jialin/sglang that referenced this pull request Jul 25, 2026
…eeComponents + controller

Separate the pure tree (NodeId handles) from the per-component KV logic and the
cache controller, so the tree core can move to Rust independently.

Squashed from:
- Split UnifiedRadixCache into RadixTreeCore + TreeComponents + controller
- Address second-round audit findings
- Apply pre-commit import fixes
- Fix kv_canary walker fixture against the TreeCore split
- Collect host frees during eviction walks; drain at the cache layer
- Thread host_frees through the remaining eviction arms
- Fix the fourth missed host_frees arm and harden the drains
- Fold the paired eviction drains into _drain_frees
- Address review renames
- Move the size accessors to the end of UnifiedTreeCore
- Drop the component-specific NodeId accessors from UnifiedTreeCore
- Route component device-value access through generic TreeCore APIs
- Port sgl-project#30468's eagle gating to UnifiedTreeCore
- Fix lint: re-sort renamed action imports, re-black the test file
- Fix import sort in unified_radix_cache
- Split prepare hook into prepare_load_back / prepare_prefetch, adopt finalize_load_back
- Pass req into build_load_back_spec, extract mamba_pool_idx tree-side
- Guard set_component_device_value against Full, fix stale COMPONENT_REGISTRY comments
- Port the load-back prepare/finalize hook unit tests from the mamba fix
- Port the keeps-preexisting-slot load-back abort test
- Port the abort/load-failure frees-unpublished-slot load-back tests from the mamba fix

Includes trunk cooperation ports: sgl-project#30986 review-response delta, sgl-project#31230 mamba
per-path state cap, sgl-project#32029 pinned host pool release.
@ispobock ispobock mentioned this pull request Aug 6, 2026
56 of 66 tasks
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fastfail release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants