Skip to content

[diffusion] Honor XDG cache for model overlays - #36019

Merged
BBuf merged 1 commit into
mainfrom
bbuf/diffusion-overlay-xdg-cache
Aug 24, 2026
Merged

BBuf merged 1 commit into
mainfrom
bbuf/diffusion-overlay-xdg-cache

Conversation

@BBuf

@BBuf BBuf commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • resolve model-overlay materialization through the canonical diffusion cache setting
  • honor XDG_CACHE_HOME when SGLANG_DIFFUSION_CACHE_ROOT is not set
  • keep the explicit diffusion cache root as the highest-priority override

This prevents overlay checkpoints such as LTX-2.3 and JoyEcho from materializing weights outside task-owned isolated caches. In the H200 sweep, LTX-2.3 left about 146 GB and 31 weight files under /root/.cache/sgl_diffusion even though XDG_CACHE_HOME pointed at the task cache. The leaked overlay was removed and verified at zero after the run.

Validation

  • PYTHONPATH=python python3 test/registered/unit/multimodal_gen/test_model_overlay.py (2 passed)
  • pre-commit on both changed files

CI States

Latest PR Test (Base): ✅ Run #32644479281
Latest PR Test (Extra): ✅ Run #32651539424
Latest PR Test (AMD ROCm 7.2): ⏳ Run #32644479267

@github-actions github-actions Bot added the diffusion SGLang Diffusion label Aug 22, 2026
@BBuf BBuf added the run-ci CI: run the baseline test suite on this PR label Aug 22, 2026
@BBuf
BBuf marked this pull request as ready for review August 23, 2026 12:22
@BBuf BBuf added bypass-fastfail run-ci-extra CI: also run the extra suite (requires run-ci) labels Aug 23, 2026
@BBuf

BBuf commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci extra

@BBuf
BBuf force-pushed the bbuf/diffusion-overlay-xdg-cache branch from cde53f4 to 3168818 Compare August 23, 2026 14:01
@BBuf
BBuf force-pushed the bbuf/diffusion-overlay-xdg-cache branch from 3168818 to f98476f Compare August 23, 2026 14:07
@BBuf BBuf added the mergeable label Aug 23, 2026
@BBuf
BBuf merged commit cc74aba into main Aug 24, 2026
159 of 166 checks passed
@BBuf
BBuf deleted the bbuf/diffusion-overlay-xdg-cache branch August 24, 2026 06:11
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

bypass-fastfail diffusion SGLang Diffusion mergeable run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant