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

chore: move cuda_vmm_utils.py under srt/utils/#36053
merrymercy merged 1 commit into
mainfrom
move-cuda-vmm-utils

Conversation

@merrymercy

@merrymercy merrymercy commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

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
Contributor Author

/tag-and-rerun-ci

@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
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 31, 2026
jakki-amd pushed a commit to jakki-amd/sglang that referenced this pull request Sep 9, 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