mirror of
https://github.com/kvcache-ai/sglang.git
synced 2026-11-05 01:07:39 +00:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/sglang#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/sglang/pull/49
Author: @yyj6666667
Created: 5/11/2026
Status: 🔄 Open
Base:
main← Head:fix/swa-tombstone-eviction📝 Commits (1)
f85f6c6fix(swa): port tombstone-aware eviction + dec_swa_lock_only from upstream #23882📊 Changes
10 files changed (+202 additions, -73 deletions)
View changed files
📝
python/sglang/srt/environ.py(+2 -0)📝
python/sglang/srt/managers/schedule_batch.py(+29 -11)📝
python/sglang/srt/managers/schedule_policy.py(+8 -9)📝
python/sglang/srt/mem_cache/base_prefix_cache.py(+21 -3)📝
python/sglang/srt/mem_cache/chunk_cache.py(+9 -4)📝
python/sglang/srt/mem_cache/hiradix_cache.py(+13 -7)📝
python/sglang/srt/mem_cache/mamba_radix_cache.py(+11 -5)📝
python/sglang/srt/mem_cache/radix_cache.py(+11 -6)📝
python/sglang/srt/mem_cache/radix_cache_cpp.py(+10 -13)📝
python/sglang/srt/mem_cache/swa_radix_cache.py(+88 -15)📄 Description
SWA-only eviction crashed on leaf nodes with full_lock_ref > 0, swa_lock_ref == 0 (beyond sliding window). Adds tombstone branch to free SWA without asserting, plus dec_swa_lock_only for early SWA lock release during decode. Unifies inc/dec_lock_ref return types across all cache implementations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.