-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[None][feat] Support the DMD2-distilled Cosmos3 4-step image-to-video checkpoint #16690
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
db9e1ed
[None][feat] Support the DMD2-distilled Cosmos3 4-step image-to-video…
ishovkun 0fc4a84
[None][feat] Honor the checkpoint-declared Cosmos3 system-prompt default
ishovkun 0deeeae
[None][test] Add I2V-4Step smoke and diffusers-golden LPIPS gates
ishovkun 0d28357
[None][doc] Document Cosmos3-Super-Image2Video-4Step usage
ishovkun 290d245
[None][fix] Resolve the Cosmos3 system-prompt default in forward(), a…
ishovkun 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
27 changes: 27 additions & 0 deletions
27
...efs/examples/visual_gen/golden/visual_gen_lpips/cosmos3_i2v_4step_lpips_golden_video.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "video": "cosmos3_i2v_4step_lpips_golden_video.mp4", | ||
| "model": "Cosmos3-Super-Image2Video-4Step", | ||
| "source": "diffusers Cosmos3DistilledModularPipeline (reference implementation, not a TRT-LLM self-golden)", | ||
| "diffusers_reference": "huggingface/diffusers#14177 'Cosmos3 Distilled support' (merged 2026-07-17)", | ||
| "diffusers_version": "0.40.0.dev0", | ||
| "diffusers_commit": "6b5199f81dc0044fe0417ebe96bbad6c59c19874", | ||
| "reference_rng_patch": "Cosmos3DistilledVisionLoopSchedulerStep patched to declare InputParam('generator') and pass generator=block_state.generator into scheduler.step. The merged PR draws the per-step SDE noise from the global torch RNG, so unpatched same-seed runs are different samples (measured LPIPS 0.144 vs 0.056 patched); the patch makes the reference trajectory reproducible and comparable.", | ||
| "reference_pipeline_construction": "The checkpoint's own modular_model_index.json is stale (base Cosmos3OmniBlocks, refs/pr/1, no distilled_sigmas). The golden run loaded a corrected index selecting Cosmos3DistilledModularPipeline / Cosmos3DistilledBlocks with is_distilled=true, distilled_sigmas=[1.0, 0.9375, 0.8333333333333334, 0.625], and component specs pointing at the local checkpoint subfolders.", | ||
| "prompt": "The orange sphere slowly rises while the camera pans right across the scene", | ||
| "conditioning_image": "deterministic 1280x720 image drawn by _write_cosmos3_i2v_conditioning_image in test_visual_gen.py (gradient sky, orange circle, green rectangle, yellow triangle)", | ||
| "height": 720, | ||
| "width": 1280, | ||
| "num_frames": 29, | ||
| "num_inference_steps": 4, | ||
| "guidance_scale": 1.0, | ||
| "seed": 42, | ||
| "global_rng_seed": 42, | ||
| "frame_rate": 24.0, | ||
| "use_system_prompt": true, | ||
| "torch_dtype": "bfloat16", | ||
| "lpips_net": "alex", | ||
| "lpips_threshold": 0.1, | ||
| "measured_lpips_at_creation": 0.0563, | ||
| "threshold_rationale": "0.0563 measured cross-stack (TRT-LLM VANILLA attention vs diffusers) on B200 with matched noise trajectories, plus headroom for the ~0.04 cross-host kernel drift documented in _preserve_lpips_candidate_on_failure.", | ||
| "notes": "num_inference_steps and guidance_scale are fixed by the distilled checkpoint (scheduler fixed_step_sampler_config.t_list; CFG baked into the weights). use_system_prompt=true matches the checkpoint's default_use_system_prompt declaration in model_index.json." | ||
| } |
4 changes: 2 additions & 2 deletions
4
...ration/defs/examples/visual_gen/golden/visual_gen_lpips/visual_gen_lpips_golden_media.zip
Git LFS file not shown
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.
Uh oh!
There was an error while loading. Please reload this page.