Repository navigation
MiniMax-H3 VAE: reference padding in one allocation and encoder norm fusion (from upstream #2476) - #110
Merged
Conversation
…of one full-clip concat per padded frame (from upstream leejet#2476)
…+ affine + SiLU on CUDA / HIP, one batched GroupNorm elsewhere (from upstream leejet#2476)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Ports two pieces of leejet/stable-diffusion.cpp leejet#2476 (MIT) to the fork's MiniMax-H3 video VAE.
Changes
vae_frame_norm_hip.cubuilt with-fno-fast-math, as upstream). Backends without the ops (CPU, Metal, Vulkan) build one batched GroupNorm over all frames instead of a slice, norm and concat per frame.The fork's decoder already has its own fused QKV / RoPE path, so the upstream decoder changes are not part of this PR. The upstream Vulkan shaders and leejet#2479 (upload / compute overlap, which needs leejet#2470's weight transfer files) are not included. ggml is untouched; all fork ggml patches still apply.
Results
The encoder fusion cuts the request by 6.5% and the output video is byte-identical to master.
Not covered
ErrorDeviceLostin DiT sampling at this size, so Vulkan request time and quality were not measured end to end.