Skip to content

refactor(hicache): simplify decode offload state bookkeeping - #37299

Merged
hnyls2002 merged 5 commits into
mainfrom
lsyin/offload-state-cleanup
Sep 1, 2026
Merged

hnyls2002 merged 5 commits into
mainfrom
lsyin/offload-state-cleanup

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #37026: derive the page-aligned prefill length instead of storing it in OffloadedState (removing the placeholder-state path in finalize_release_on_finish), key the per-request offload tables with weak references so a request released outside _release_finished_req is not pinned forever, and drop the unused start/end fields from ongoing_offload entries.


CI States

Latest PR Test (Base): 🚫 Run #33472996218
Latest PR Test (Extra): ❌ Run #33472995915
Latest PR Test (AMD ROCm 7.2): 🚫 Run #33472996029

@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/rerun-test registered/unit/disaggregation/test_specv2_kvcache_offloading.py registered/disaggregation/test_disaggregation_decode_offload.py

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Results for /rerun-test registered/unit/disaggregation/test_specv2_kvcache_offloading.py registered/disaggregation/test_disaggregation_decode_offload.py:

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

cd test/ && python3 registered/unit/disaggregation/test_specv2_kvcache_offloading.py

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

cd test/ && python3 registered/disaggregation/test_disaggregation_decode_offload.py

@hnyls2002
hnyls2002 merged commit 959ca03 into main Sep 1, 2026
89 of 130 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/offload-state-cleanup branch September 1, 2026 06:09
StevenChenSE pushed a commit to StevenChenSE/sglang that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant