Repository navigation
Conversation
Enable Nano/Super and Super 4-Step FP8 via COSMOS3_DIFFUSERS_PRECISION without duplicating request cells. Load public MODEL_IDS with revision=fp8 or a local COSMOS3_FP8_MODEL_PATH.
yzhautouskay
reviewed
Aug 6, 2026
…er preload Modular load_components passes repo+subfolder, which ModelOpt 0.44 ignores when looking up modelopt_state.pth. Pre-load transformer from its full local path, pin it, then load remaining components. Add verify_fp8 helper.
ConstBob
force-pushed
the
feat/diffusers-fp8
branch
from
August 6, 2026 18:29
1831c57 to
f4878b6
Compare
Load Nano/Super/Edge FP8 from nvidia/Cosmos3-*-FP8 and keep Super 4-Step on revision=fp8. Rebase the notebook onto current audiovisual helpers without documenting mixed precision.
# Conflicts: # cookbooks/cosmos3/generator/audiovisual/run_with_diffusers.ipynb
Point users at the Cosmos3 Diffusers docs instead of duplicating generate-time kwargs.
…repos Point forward dynamics, inverse dynamics, and video transfer at the Nano and Super FP8 model cards without changing their request cells.
yzhautouskay
suggested changes
Oct 19, 2026
Collaborator
Author
|
Addressed all review comments in dd7088e:
Validation completed:
@yzhautouskay, could you please take another look when convenient? |
Collaborator
|
Closing this PR, using NVIDIA/cosmos-framework#298 |
christinayyw
added a commit
to NVIDIA/cosmos-framework
that referenced
this pull request
Nov 5, 2026
> **Do not merge.** Wait for legal approval on the FP8 Hugging Face model cards. The model cards need to be approved and published on Hugging Face before this GitHub PR is merged. ## Summary Ports the Diffusers FP8 cookbook support from NVIDIA/cosmos#304 to `NVIDIA/cosmos-framework` following the cookbook repository reorganization. Updates the audiovisual, action forward/inverse dynamics, and transfer notebooks to: - select BF16 or FP8 through `COSMOS3_DIFFUSERS_PRECISION` - load Nano, Super, and Edge from their dedicated FP8 repositories - load distilled T2I/I2V checkpoints from their `fp8` revisions - enable ModelOpt checkpoint restoration and FP8 GEMM support - explicitly fetch `transformer/modelopt_state.pth` for a fresh Hub cache - preload modular transformers where required by ModelOpt 0.44 - validate FP8 weights, quantizers, and unresolved meta tensors after loading The existing BF16 behavior remains the default. ## Repository migration The original implementation and review history are in NVIDIA/cosmos#304. After NVIDIA/cosmos#384 and #292 moved cookbook content into `.agents/skills/`, the changes were rebased onto the new Framework locations while preserving the current Framework setup, `uv 0.11.29` guidance, and updated action imports. ## Validation Validated on an NVIDIA RTX PRO 6000 Blackwell: - Nano FP8 from an empty Hub cache: - ModelOpt state restored - 504 FP8 weights, 1533 quantizers, 0 meta tensors - complete 189-frame, 1280×720 T2V generation - Super FP8 from an independent empty cache: - 896 FP8 weights, 2709 quantizers, 0 meta tensors - Distilled Super T2I FP8: - complete 768×768 image generation - Distilled Super I2V FP8: - complete 189-frame, 832×480 video generation - Nano action forward dynamics, inverse dynamics, and transfer paths were exercised end to end in the original implementation. - Generated videos were decoded and checked for expected frame count and resolution. --------- Co-authored-by: Christina Wang <77945617+christinayyw@users.noreply.github.com>
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.
Adds FP8 quantized checkpoint support to the Cosmos3 Diffusers cookbook for FP8 models.