Repository navigation
fix(vlm): stream-order CUDA IPC feature pool lifecycle and streamline multimodal transport module - #33949
Merged
Conversation
…m-sync # Conflicts: # python/sglang/srt/multimodal/processors/base_processor.py
This was referenced Aug 7, 2026
Collaborator
Author
|
/tag-and-rerun-ci extra |
mickqian
requested review from
Ying1123,
hnyls2002,
merrymercy and
xiezhq-hermann
as code owners
August 7, 2026 10:21
…m-sync # Conflicts: # python/sglang/srt/multimodal/transport/fabric.py # test/registered/unit/managers/test_mm_process_config.py
mickqian
requested review from
b8zhong,
mmangkad,
sogalin,
wisclmy0611 and
zijiexia
as code owners
August 8, 2026 08:01
…eam-sync # Conflicts: # docs/cookbook/autoregressive/Moonshotai/Kimi-K3.mdx
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…eam-sync # Conflicts: # python/sglang/srt/multimodal/processors/kimi_k3.py
…eam-sync # Conflicts: # python/sglang/srt/models/qwen3_vl.py # python/sglang/srt/utils/cuda_ipc_transport_utils.py # test/registered/unit/models/test_kimi_k25.py # test/registered/unit/test_global_config_read_ratchet.py
vstone-w
pushed a commit
to ClownBin/sglang
that referenced
this pull request
Aug 12, 2026
… multimodal transport module (sgl-project#33949)
saturn-acc
pushed a commit
to saturn-acc/sglang
that referenced
this pull request
Aug 16, 2026
… multimodal transport module (sgl-project#33949)
Atituiset
pushed a commit
to Atituiset/sglang
that referenced
this pull request
Sep 10, 2026
… multimodal transport module (sgl-project#33949)
4 of 5 tasks
Merged
5 tasks
apinge
pushed a commit
to apinge/sglang
that referenced
this pull request
Oct 22, 2026
…_v0.5.21` (#54) * Merge main; port the cuda_ipc ROCm gate to serving_hook The transport resolution moved from ServerArgs._handle_multimodal_feature_transport to arg_groups/serving_hook.handle_multimodal_feature_transport. Accept cuda_ipc on CUDA or HIP there. Tests use override_platform instead of patching server_args. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KVPUFiK2bhzjErEnCMv26w (cherry picked from commit 7453337) * [AMD] Complete stream-ordered multimodal IPC support on ROCm PR sgl-project#33747 opens the multimodal IPC gate on HIP, but the pool lifecycle introduced by sgl-project#33949 still calls the NVIDIA CUDA driver. Dispatch the ROCm ready/wait/ack words through small Triton kernels with system-scope acquire/release atomics. Keep the NVIDIA path unchanged. Native HIP stream wait crashed on peer IPC mappings in the tested ROCm build; the GPU kernel path preserves copy ordering and lease safety. Correct the inherited gate comment to describe this additional backend requirement and register IPC coverage for AMD. * support qwen3.5 fp8 ptpc model Signed-off-by: Xiake Sun <[email protected]> * Add Qwen3.5 + dflash support with cuda graph and target verify Signed-off-by: Xiake Sun <[email protected]> * Add evaluation guide and scripts Signed-off-by: Xiake Sun <[email protected]> * eval: update eval guide & scripts Signed-off-by: Xiake Sun <[email protected]> * Addess review comments Signed-off-by: Xiake Sun <[email protected]> * eval: update guide to enforce reinstall process Signed-off-by: Xiake Sun <[email protected]> * fix(qwen3.8 ple): release loader parameter references before FP8 postprocessing The self-referencing PLE shard loader forms a closure cycle that retains params_dict after weight loading. When FP8 postprocessing (fp8e4m3->fp8e4m3nuz) replaces the parameters, the dictionary keeps their original GPU storage alive until cyclic GC runs, causing Qwen3.8 BF16-PLE TP2 launches OOM. Clear params_dict before returning so obsolete weight storage can be released during postprocessing. Preserve PLE GPU residency, weight precision, and existing quantization behavior. Signed-off-by: Xiake Sun <[email protected]> * eval: add Qwen3.5 dflash model and eval guide Signed-off-by: Xiake Sun <[email protected]> --------- Signed-off-by: Xiake Sun <[email protected]> Co-authored-by: vincentzed <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
5 tasks
sammysun0711
added a commit
to apinge/sglang
that referenced
this pull request
Nov 3, 2026
…anch (#75) * [AMD] Allow multimodal CUDA IPC on ROCm in the Qwen3.8 branch Adapt 881b8ec to the existing ServerArgs handler and platform mocks; this branch predates serving_hook. Signed-off-by: Xiake Sun <[email protected]> * [AMD] Complete stream-ordered multimodal IPC support on ROCm PR sgl-project#33747 opens the multimodal IPC gate on HIP, but the pool lifecycle introduced by sgl-project#33949 still calls the NVIDIA CUDA driver. Dispatch the ROCm ready/wait/ack words through small Triton kernels with system-scope acquire/release atomics. Keep the NVIDIA path unchanged. Native HIP stream wait crashed on peer IPC mappings in the tested ROCm build; the GPU kernel path preserves copy ordering and lease safety. Correct the inherited gate comment to describe this additional backend requirement and register IPC coverage for AMD. Signed-off-by: Xiake Sun <[email protected]> * fix(multimodal): bound ROCm IPC waits with server watchdog timeout - Reuse --watchdog-timeout for stream-ordered ROCm IPC readiness waits. - Track GPU completion independently of scheduler batch activity. - Log wait diagnostics and terminate consumers on timeout or query failure. - Preserve supervision after event-record failures and reject graph capture. - Add timeout and cached/uncached peer-IPC tests with two-GPU AMD CI. Signed-off-by: Xiake Sun <[email protected]> * eval: enable cuda_ipc for qwen3.8 by default Signed-off-by: Xiake Sun <[email protected]> --------- Signed-off-by: Xiake Sun <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
srt/multimodal/transport; keep the old utility module as a thin compatibility import.tp_sizeread.Compatibility and memory policy
SGLANG_MM_FEATURE_CACHE_MBremains the total CUDA IPC HBM budget across tokenizer workers.SGLANG_USE_IPC_POOL_HANDLE_CACHEremains supported and defaults on.Why
The old producer could serialize a proxy immediately after enqueueing its pool copy, while the consumer incremented a CPU acknowledgement immediately after enqueueing its local copy. That could expose incomplete bytes or recycle and overwrite a slice before the copy completed. The new ready/wait/ack protocol is ordered on CUDA streams and tags every reused slot with a generation.
Server benchmark
Real
Qwen3-VL-2B-Instruct, NVIDIA H200 x8, TP8 encoder DP,--mm-feature-transport cuda_ipc, 1 GiB bounded pool, OpenAI Chatbench_serving. Base42a62553961a(#33936) and heade0c94d36c52a; the later main-only merges do not change this PR's transport or test files.The request-rate sweep uses 48 requests/rate, 1-4 seeded random JPEG images/request, random 256-1024 px dimensions, 64 text input tokens, and 8 output tokens. All 288 A/B requests completed successfully.
Because the short unlimited run is sensitive to new-shape warmup, a second saturated comparison used 64 requests/run, three paired seeds after both servers had completed three warmup sweeps, and reports the median.
The result supports a small steady-state gain while the primary reason to merge remains correctness: stream-ordered ready/ack prevents incomplete reads and premature pool reuse.
Validation
Base integration
#33899 and #33936 are merged into
main; this PR now targetsmaindirectly and contains only the stream-ordered CUDA IPC lifecycle changes.CI States
Latest PR Test (Base): ✅ Run #31348879104
Latest PR Test (Extra): ❌ Run #31348879030