-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Add SeaCache support for Cosmos3 pipelines #14663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yzhautouskay
wants to merge
29
commits into
huggingface:main
Choose a base branch
from
yzhautouskay:yzhautouskay/cosmos3_diffusion_caching
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
575abce
Add optional FP32 sampling state for Cosmos3
yzhautouskay 5e2e41c
Add cache execution contexts to Cosmos3 pipelines
yzhautouskay d699832
Add SeaCache support for Cosmos3
yzhautouskay cabada1
Cap consecutive SeaCache reuses
yzhautouskay a952498
Align SeaCache defaults with Cosmos3 inference
yzhautouskay 61ac99b
Enable SeaCache by default for Cosmos3
yzhautouskay d89c5ee
Document SeaCache for Cosmos3
yzhautouskay 5cf0e53
Use FP32 sampling state by default for Cosmos3
yzhautouskay 68bc006
Fix SeaCache reconfiguration, transfer state isolation, and FP32 samp…
yzhautouskay 9407819
Remove SeaCache stats and ablation instrumentation
yzhautouskay 1dd8308
Move SeaCache to transformer-level and disable by default
yzhautouskay c403025
Align SeaCache and tests with model-level cache patterns
yzhautouskay 0a943d3
Make Cosmos3 sampling state always FP32
yzhautouskay 2342b72
Add pipe definition to the docs snippet
yzhautouskay 211d1d1
Remove redundant hook registry cache resets
yzhautouskay 48dadff
Use raw vision latents for SeaCache indicators
yzhautouskay 09e11b7
Make Cosmos3 SeaCache safe for regional compilation
yzhautouskay 9887731
Fix SeaCache with Cosmos3 model parallelism
yzhautouskay 0af0814
Support single-stream models in SeaCache
yzhautouskay 14bba9f
Add Wan T2V support to SeaCache
yzhautouskay a4c3283
pass denoising step info to cache hooks via cache_context
yiyixuxu 7757df6
Fix Wan cache metadata and Cosmos modular cleanup
yzhautouskay ad18c5e
Refactor Cosmos3 SeaCache decoder hook
yzhautouskay a5072bd
Apply CI formatting updates
yzhautouskay 8dfcf9f
Merge branch 'main' into yzhautouskay/cosmos3_diffusion_caching
yiyixuxu 6146ae1
Fix distilled system prompt fallback
yzhautouskay 4a14d83
Merge remote-tracking branch 'upstream/main' into yzhautouskay/cosmos…
yzhautouskay e56bab5
Preserve Cosmos3 fp32 sampling state
yzhautouskay c272153
Merge branch 'main' into yzhautouskay/cosmos3_diffusion_caching
yzhautouskay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for the note! From a quick skim of the paper, it doesn't look like it needs to be Cosmos3 specific no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try running SeaCache with other models, and will update the docs accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added Wan T2V support in 14bba9f as a minimal example of integrating another model. So docs now clarify that Cosmos3 remains the optimized and benchmarked integration, but is not intended to be the only supported model