Skip to content

chore: move cuda_vmm_utils.py under srt/utils/ - #36053

Merged
merrymercy merged 1 commit into
mainfrom
move-cuda-vmm-utils
Aug 24, 2026
Merged

merrymercy merged 1 commit into
mainfrom
move-cuda-vmm-utils

Conversation

@merrymercy

@merrymercy merrymercy commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

python/sglang/srt/cuda_vmm_utils.py sat at the top level of srt/, while its closest relatives — cuda_vmm_transport_utils.py and cuda_ipc_transport_utils.py — already live under srt/utils/. Move it next to them.

Modifications

  • git mv python/sglang/srt/cuda_vmm_utils.py python/sglang/srt/utils/cuda_vmm_utils.py — the file contents are unchanged (rename shows 100% similarity).
  • Updated every import site from sglang.srt.cuda_vmm_utils to sglang.srt.utils.cuda_vmm_utils:
    • srt/layers/moe/dwdp/{layout,page_pool,transport,weight_buffer}.py
    • srt/distributed/device_communicators/{custom_all_reduce_utils,custom_all_reduce_v2}.py
    • srt/model_executor/runner_utils/pool.py
    • srt/utils/cuda_vmm_transport_utils.py
    • srt/multimodal/transport/memory_pool.py
    • srt/mem_cache/kv_vmm_backing.py
    • test/registered/unit/test_cuda_vmm_utils.py
  • isort reordered the moved import lines in the affected files; no other content changes.

The test file stays at test/registered/unit/test_cuda_vmm_utils.py, consistent with test_runai_utils.py for srt/utils/runai_utils.py.

Checklist

  • Pure relocation, no behavior change.
  • pre-commit run clean on all touched files.
  • grep -rn cuda_vmm_utils confirms no remaining references to the old path.

CI States

Latest PR Test (Base): 🚫 Run #32627261656
Latest PR Test (Extra): ❌ Run #32627261597
Latest PR Test (AMD ROCm 7.2): ❌ Run #32627261680

Relocate python/sglang/srt/cuda_vmm_utils.py to
python/sglang/srt/utils/cuda_vmm_utils.py, next to the related
cuda_vmm_transport_utils.py / cuda_ipc_transport_utils.py, and update all
import sites. Pure move: the file contents are unchanged.
@merrymercy

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 Aug 23, 2026
@merrymercy
merrymercy merged commit b498efc into main Aug 24, 2026
281 of 322 checks passed
@merrymercy
merrymercy deleted the move-cuda-vmm-utils branch August 24, 2026 04:47
longxin9715 added a commit to longxin9715/sglang that referenced this pull request Aug 24, 2026
…n-transport1

* 'main' of https://github.com/sgl-project/sglang: (326 commits)
  [diffusion] feat: cache LoRA-merged weights in files the page cache can hold (sgl-project#36062)
  [diffusion] Speed up LingBot high-quality VAE decode (sgl-project#36024)
  [diffusion] Honor XDG cache for model overlays (sgl-project#36019)
  Support streaming session on NPU (sgl-project#32597)
  fix(xpu): read enable_deterministic_inference from the config bag (sgl-project#36149)
  xeon ci fail fast strategy change (sgl-project#36146)
  [diffusion] Fix Hunyuan QKV pack indexing at production video shapes (sgl-project#36009)
  [diffusion] Refresh quality and BCG benchmark skills (sgl-project#36016)
  [MoE] Gather the cutlass MoE activation and its scales in one launch (sgl-project#34915)
  [diffusion] feat: add plain component weight overrides (sgl-project#36086)
  [diffusion] feat: support loading mixed w4a8 text encoders (sgl-project#36037)
  [diffusion] Default Hunyuan VAE to tiled decode (sgl-project#36012)
  fix(xpu): enable compressed-tensors FP8 W8A8 on XPU (RedHatAI FP8-dynamic models) (sgl-project#33057)
  chore: move cuda_vmm_utils.py under srt/utils/ (sgl-project#36053)
  [Intel XPU] Add xpu pass for biased_topk and hash_topk (sgl-project#33323)
  [CPU] Fix NUMA/core binding for DP ranks (sgl-project#32856)
  [Fix] Harden FlashAttention CUDA graph metadata bounds (sgl-project#35454)
  [XPU] Use a fused GDN kernel from sgl-kernel for Qwen3.5 (sgl-project#33354)
  [diffusion] Fuse LongCat-Image QKNorm and interleaved RoPE (sgl-project#35995)
  [diffusion] Keep LongLive2 components resident on large GPUs (sgl-project#35993)
  ...

# Conflicts:
#	python/sglang/srt/multimodal/processors/base_processor.py
#	python/sglang/srt/server_args.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant