[None][fix] Fix passing scaled timestep to time_embedder in Cosmos3#15545
Conversation
Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
📝 WalkthroughWalkthroughA new ChangesCosmos3 attention_timestep separation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/bot run |
|
PR_Github #55280 [ run ] triggered by Bot. Commit: |
|
PR_Github #55280 [ run ] completed with state
|
|
/bot run --stage-list "DGX_B200-8_GPUs-PyTorch-1" |
|
PR_Github #55366 [ run ] triggered by Bot. Commit: |
|
PR_Github #55366 [ run ] completed with state
|
|
/bot run --stage-list "DGX_B200-8_GPUs-PyTorch-1" |
|
/bot run --reuse-test |
|
PR_Github #55407 [ run ] triggered by Bot. Commit: |
|
PR_Github #55408 [ run ] triggered by Bot. Commit: |
|
PR_Github #55407 [ run ] completed with state |
|
PR_Github #55408 [ run ] completed with state |
…VIDIA#15545) Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com> Signed-off-by: GitLab CI Bot <gitlab-ci@nvidia.com>
…d Cosmos3-Nano Add default-setting single-GPU LPIPS golden tests for QwenImage and Cosmos3-Nano, and complete the VisualGen LPIPS CI protection introduced by the preceding changes. Refresh all eight golden media entries with the pinned staging main image at TRT-LLM commit 85665f5, which contains the Cosmos3 accuracy fix from NVIDIA#15545. Record the TRT-LLM commit, package versions, and container digest in every golden JSON while retaining the original LPIPS thresholds. Remove every remaining LPIPS waiver and keep all eight single-GPU and eight multi-GPU cases registered in the B200 test lists. Restore the Cosmos3 guardrail environment after generation and disable TRT-LLM MPI bootstrap before the torch-distributed multi-GPU harness imports its helpers. Validated on B200: all eight single-GPU and eight multi-GPU LPIPS cases passed with the original thresholds. Signed-off-by: Chang Liu <9713593+chang-l@users.noreply.github.com>
…ation Add default-setting single-GPU LPIPS golden tests for QwenImage and Cosmos3-Nano, completing single-GPU VisualGen LPIPS CI coverage across all supported models. Refresh all eight golden media entries with the pinned staging main image at TRT-LLM commit 85665f5, which contains the Cosmos3 accuracy fix from NVIDIA#15545. Record the TRT-LLM commit, package versions, container digest, compile-off mode, and deterministic-algorithm mode in every golden JSON while retaining the existing LPIPS thresholds. Explicitly disable pipeline torch compile for every single-GPU LPIPS generator. Unwaive and register all eight single-GPU cases while retaining waivers for all eight multi-GPU LPIPS cases. Validated on B200: all eight single-GPU LPIPS cases passed at 0.000000 against the refreshed goldens with the original thresholds. Signed-off-by: Chang Liu <9713593+chang-l@users.noreply.github.com>
…ation Add default-setting single-GPU LPIPS golden tests for QwenImage and Cosmos3-Nano, completing single-GPU VisualGen LPIPS CI coverage across all supported models. Refresh all eight golden media entries with the pinned staging main image at TRT-LLM commit 85665f5, which contains the Cosmos3 accuracy fix from NVIDIA#15545. Record the TRT-LLM commit, package versions, container digest, compile-off mode, and deterministic-algorithm mode in every golden JSON while retaining the existing LPIPS thresholds. Explicitly disable pipeline torch compile for every LPIPS generator. Unwaive all eight single-GPU cases, test_wan_t2v_example, and the passing attn2d_2x2_ulysses2 multi-GPU case. Retain the six pre-existing multi-GPU waivers and waive only the new cfg2_ulysses2_attn2d_2x1 case that measured 0.255208 above the unchanged 0.25 threshold. Validated on B200: all eight single-GPU LPIPS cases passed at 0.000000, test_wan_t2v_example passed, and attn2d_2x2_ulysses2 passed at 0.232348. Signed-off-by: Chang Liu <9713593+chang-l@users.noreply.github.com>
…ation Add default-setting single-GPU LPIPS golden tests for QwenImage and Cosmos3-Nano, completing single-GPU VisualGen LPIPS CI coverage across all supported models. Refresh all eight golden media entries with the pinned staging main image at TRT-LLM commit 85665f5, which contains the Cosmos3 accuracy fix from NVIDIA#15545. Record the TRT-LLM commit, package versions, container digest, compile-off mode, and deterministic-algorithm mode in every golden JSON while retaining the existing LPIPS thresholds. Explicitly disable pipeline torch compile for every LPIPS generator. Unwaive all eight single-GPU cases, test_wan_t2v_example, and the passing attn2d_2x2_ulysses2 multi-GPU case. Retain the six pre-existing multi-GPU waivers and waive only the new cfg2_ulysses2_attn2d_2x1 case that measured 0.255208 above the unchanged 0.25 threshold. Validated on B200: all eight single-GPU LPIPS cases passed at 0.000000, test_wan_t2v_example passed, and attn2d_2x2_ulysses2 passed at 0.232348. Signed-off-by: Chang Liu <9713593+chang-l@users.noreply.github.com>
…VIDIA#15545) Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
Description
This MR fixes regression introduced in MR14687 for Cosmos3 model, after changes we are passing scaled timestep to
Cosmos3VFMTransformer.time_embedderwhich makes inference produce noise, the fix is to pass raw timestep to thetime_embedderand scaled timestep elsewhere. This can be tested by running exampleexamples/visual_gen/models/cosmos3_ti2v.pyTest Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.