feat: retain diffusion tuning samples in GPU cache - #2342
Draft
changwangss wants to merge 3 commits into
Draft
Conversation
Signed-off-by: changwangss <chang1.wang@intel.com>
Signed-off-by: changwangss <chang1.wang@intel.com>
Normalize tensor-list inputs to the hidden_states mapping inside the diffusion cache so subsequent single-output blocks can retain prefetch, GPU best snapshots, and resident samples. Signed-off-by: changwangss <chang1.wang@intel.com>
changwangss
force-pushed
the
wangchang/diffusion-resident-cache
branch
from
September 11, 2026 07:18
48829c4 to
0f0b762
Compare
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.
Description
Use the remaining diffusion tuning cache budget to retain samples(cached block input) on GPU and reduce repeated CPU-to-GPU transfers.
The existing prefetch implementation (#2340 )allocates two staging buffers and optional GPU best-parameter snapshots. Even when
autoallows a much larger budget, the remaining space is unused and repeated samples are transferred again.the log collected base on #2340, still about 120g gpu memory unused.
This change retains samples on first use within the remaining budget:
Caches remain local to each block and are released after tuning. Wan's
transformerandtransformer_2still collect calibration inputs separately and use independent tuning caches.No new option is required:
Type of Change
Bug fix
Related Issues
Fixes or relates to #
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.