Repository navigation
Conversation
Inventory selected component weights before loading and use them to seed a conservative resident set. The seed changes only ordinary component residency, so post-load planning can replace it before the first serving forward. Run the same exact multi-resource placement solver after components are sized and again after one representative warmup. Each target state jointly obeys per-rank execution-phase VRAM, placement-transition scratch, per-worker HostPin, and host repacking headroom. The complete target frontier includes resident, component offload, and partial layerwise placements for DiTs, encoders, VAEs, lazy components, and two-stage pipelines. Keep structural loading decisions such as explicit FSDP outside the reversible planner, cap normal calibration at one adjustment and one verification warmup, and retain bounded OOM recovery. Extend offline startup to use the same sequence and add exhaustive solver, lifecycle, rollback, multi-rank, custom-pipeline, and server-args coverage.
mickqian
requested review from
AgainstEntropy,
BBuf,
HaiShaw,
ping1jing2 and
yichiche
as code owners
August 27, 2026 14:11
Collaborator
Author
|
/tag-and-rerun-ci |
…nto codex/diffusion-preload-residency-planner # Conflicts: # python/sglang/multimodal_gen/runtime/managers/memory_managers/auto_residency.py # python/sglang/multimodal_gen/test/unit/test_auto_residency.py
The seed keeps native DiTs resident from load, so the load peaks of the Wan2.2 A14B 2-GPU cases and the 5090 Wan/Turbo-Wan/FLUX.2-klein cases rise accordingly (run 34131148154 at a330811); runtime peaks follow the apply layer's refresh. Co-Authored-By: Claude Fable 5.1 <[email protected]>
# Conflicts: # python/sglang/multimodal_gen/test/server/perf_baselines/h100.json
…load-residency-planner
Collaborator
Author
|
/tag-and-rerun-ci |
This was referenced Sep 15, 2026
5 tasks done
This was referenced Sep 21, 2026
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Mick Qian <[email protected]>
This branch has not been 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.
Why this change?
With
--performance-mode auto, the first warmup in #35335 still starts from model/card defaults. An offloaded DiT may copy weights from CPU on every denoising step even when it fits on the GPU. The opposite shortcut is risky too: fitting the weights does not mean there is room for the activations of a full-size video. This PR uses checkpoint sizes to make an earlier placement decision without locking the deployment into it.What changes at startup?
autodoesThe planner checks GPU memory and pinned CPU memory together: a layout that fits in VRAM is not usable if its offloaded layers exceed the host budget. Ranks in the same replica can use different shares of that budget; separate data-parallel replicas do not borrow from each other. Explicit placement choices still win. This is startup tuning for the warmup workload, not per-request replanning; use
--warmup-sampling-paramsfor a different production shape.Evidence and trade-off
Stacked on #35335. The base CI run for
9dfa5a5did not pass; the B200 result above is from an earlier revision.CI States
Latest PR Test (Base): ⏳ Run #47278031391
Latest PR Test (Extra): ⊘ Skipped -- add the
run-ci-nv-extralabel to opt in.Latest PR Test (AMD ROCm 10): ⏳ Run #47278033291
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: