Repository navigation
Fix buffer-mode idle tracking and VLM memory sizing - #37567
Conversation
Track every in-flight buffer-mode transfer before reporting the pipeline idle, and reserve fixed runtime headroom for multimodal models when post-capture KV sizing is active. Co-authored-by: Yongji Wu <30348494+libertyeagle@users.noreply.github.com> Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
|
/tag-and-rerun-ci |
|
/rerun-test test/registered/mem_cache/test_post_capture_kv_sizing.py::TestPostCaptureKVSizing test/registered/hicache/test_hicache_storage_runtime_attach_detach.py::TestUnifiedRadixCacheStorageRuntimeAttachDetach.test_runtime_attach_detach |
|
Results for 🚀 🚀 |
|
/rerun-test test/registered/mem_cache/test_post_capture_kv_sizing.py::TestPostCaptureKVSizing test/registered/hicache/test_hicache_storage_runtime_attach_detach.py::TestUnifiedRadixCacheStorageRuntimeAttachDetach.test_runtime_attach_detach |
|
Results for 🚀 🚀 |
|
/rerun-test test/registered/mem_cache/test_post_capture_kv_sizing.py::TestPostCaptureKVSizing test/registered/hicache/test_hicache_storage_runtime_attach_detach.py::TestUnifiedRadixCacheStorageRuntimeAttachDetach.test_runtime_attach_detach |
|
Results for 🚀 🚀 |
|
/rerun-test test/registered/vlm/test_vision_openai_server_a.py::TestLlavaServer.test_single_image_chat_completion test/registered/vlm/test_vision_chunked_prefill.py::TestVisionChunkedPrefill.test_chunked_prefill test/registered/hicache/test_hicache_storage_file_backend.py::TestHiCacheStoragePageFirstDirectIO.test_basic_backup_and_prefetch |
|
Results for 🚀 🚀 |
Motivation
Buffer-only HiCache can report idle while write-through or load-back work is still in flight, allowing lifecycle transitions before staging activity drains. Post-capture KV sizing also needs fixed runtime headroom for multimodal execution instead of the standard capacity-scaled heuristic.
Modifications
Accuracy Tests
Not applicable; this does not change model numerics.
LD_PRELOAD=/usr/lib64/libnuma.so.1 uv run --no-sync pytest -q test/registered/unit/server_args/test_server_args.py test/registered/unit/mem_cache/test_unified_radix_cache_unittest.py::TestBufferModePipelineIdle— 193 passed, 20 subtests passed.Speed Tests and Profiling
Not applicable; no inference hot path is changed.
Original commits
80ee123f2f91e7de8f71238b1c6Checklist
Review and Merge Process
Please follow the standard SGLang review and merge process.
CI States
Latest PR Test (Base): 🚫 Run #33789910520
Latest PR Test (Extra): ❌ Run #33789910083
Latest PR Test (AMD ROCm 7.2): 🚫 Run #33789910446