Skip to content

[Session] Run streaming sessions only on UnifiedRadixCache; reject unverified tree caches - #42295

Merged
hnyls2002 merged 3 commits into
mainfrom
lsyin/retire-streaming-wrapper
Oct 3, 2026
Merged

hnyls2002 merged 3 commits into
mainfrom
lsyin/retire-streaming-wrapper

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator
  • --disable-radix-cache --enable-streaming-session builds UnifiedRadixCache in its disabled mode, the same way host-pool decode retraction already does, instead of wrapping a chunk cache in StreamingSession.
  • A tree cache that does not support streaming sessions (pure-SWA models, FlexKV, plugin backends) now fails at startup with a "not verified" error instead of being wrapped; neither combination has tests today.
  • PrefillAdder._lock_node always hands the acquire's receipt back on release. A disabled UnifiedRadixCache reports itself as a chunk cache, so the old is_tree_cache() branch released without the receipt and crashed the scheduler on the first admission.
  • Tests: a --disable-radix-cache class in test_streaming_session.py; registry tests for the new routing and the rejection.

CI States

Latest PR Test (Base): 🚫 Run #37082323258
Latest PR Test (Extra): ⚠️ Not enabled -- add run-ci-extra label to opt in.
Latest PR Test (AMD ROCm 10): ❌ Run #37082323213

@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Oct 3, 2026
@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/rerun-test test_streaming_session.py test_streaming_session_swa.py test_streaming_session_extra.py test_streaming_session_swa_extra.py test_session_control.py test_session_latency.py test_registry.py test_streaming_session_unit.py test_minicpm_sparse_cache.py test_prefill_adder.py

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test_streaming_session.py test_streaming_session_swa.py test_streaming_session_extra.py test_streaming_session_swa_extra.py test_session_control.py test_session_latency.py test_registry.py test_streaming_session_unit.py test_minicpm_sparse_cache.py test_prefill_adder.py:

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

cd test/ && python3 registered/sessions/test_streaming_session.py
cd test/ && python3 registered/sessions/test_streaming_session_swa.py
cd test/ && python3 registered/sessions/test_streaming_session_extra.py
cd test/ && python3 registered/sessions/test_streaming_session_swa_extra.py
cd test/ && python3 registered/sessions/test_session_control.py
cd test/ && python3 registered/sessions/test_session_latency.py

🚀 ubuntu-latest (4 tests): ✅ View workflow run

cd test/ && python3 registered/unit/mem_cache/test_registry.py
cd test/ && python3 registered/unit/mem_cache/test_streaming_session_unit.py
cd test/ && python3 registered/unit/layers/test_minicpm_sparse_cache.py
cd test/ && python3 registered/unit/managers/test_prefill_adder.py

@hnyls2002 hnyls2002 added the release-highlight Candidate PR for release note highlight label Oct 3, 2026
@hnyls2002
hnyls2002 merged commit a8b54f1 into main Oct 3, 2026
189 of 222 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/retire-streaming-wrapper branch October 3, 2026 01:16
@metamergebot metamergebot mentioned this pull request Oct 3, 2026
4 of 5 tasks
nvpohanh added a commit to peilii/sglang that referenced this pull request Oct 5, 2026
Resolve conflicts with main:
- schedule_policy.py: fold main's new max_prefix_len cap into
  _req_radix_key, and gate the refresh on supports_prefix_sharing()
  since main removed is_chunk_cache() (sgl-project#42362).
- unified_radix_cache.py: keep refresh_device_prefix next to main's
  supports_prefix_sharing().
- streaming_session.py: take main's version. StreamingSession is no
  longer a BasePrefixCache wrapper (sgl-project#42295), so the
  refresh_device_prefix forwarder and its wrapper test are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR unified-radix-cache

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant