-
Notifications
You must be signed in to change notification settings - Fork 264
fix(minimax-h3): align Ref2AV output #1490
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
Watebear
wants to merge
15
commits into
main
Choose a base branch
from
fix_h3_ref
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.
+2,894
−584
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
68f453d
feat(minimax-h3): align Ref2AV output with SGLang
Watebear 94a79ed
refactor(minimax-h3): localize SGLang parity ops
Watebear e202aeb
chore(minimax-h3): omit redundant config defaults
Watebear d650558
refactor(minimax-h3): unify SGL alignment config
Watebear 90b579c
chore(minimax-h3): remove standalone parity tests
Watebear f01b303
fix(minimax-h3): support parity-safe model offload
Watebear 1d163d7
refactor: simplify attention validation and parity guards
Watebear 20fefd0
refactor(minimax-h3): align inference with SGL
Watebear 221f1ba
refactor(minimax-h3): make aligned execution canonical
Watebear 7a66c1b
refactor(minimax-h3): register configurable SGL RoPE
Watebear 30682e2
refactor(minimax-h3): clarify weight and kernel boundaries
Watebear 244ff9c
refactor(minimax-h3): generalize exact NeoX RoPE
Watebear 13cd227
refactor(minimax-h3): generalize exact RMSNorm backend
Watebear e6ff9ae
fix(attn): keep non-packed SDPA on dense path
Watebear 52a9d8e
refactor(minimax-h3): clarify exact ops and add TP8 DMD ref runner
Watebear 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
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
40 changes: 40 additions & 0 deletions
40
configs/minimax_h3/dmd/minimax_h3_ref2av_turbo_4step_tp8.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,40 @@ | ||
| { | ||
| "infer_steps": 4, | ||
| "target_video_length": 362, | ||
| "target_height": 768, | ||
| "target_width": 1344, | ||
| "fps": 24, | ||
| "enable_cfg": false, | ||
| "cpu_offload": true, | ||
| "reference_image_resize_mode": "match", | ||
| "offload_granularity": "model", | ||
| "use_adaln_cache": true, | ||
| "adaln_cache_dir": "/data/wushuo1/.cache/lightx2v/adaln", | ||
| "text_encoder_cpu_offload": true, | ||
| "vae_cpu_offload": true, | ||
| "lazy_load": false, | ||
| "unload_modules": false, | ||
| "attn_type": "sage_attn2", | ||
| "rms_type": "sgl-kernel", | ||
| "rope_type": "sgl_exact_neox_rope", | ||
| "feature_caching": "NoCaching", | ||
| "use_compile": false, | ||
| "warmup": false, | ||
| "video_flow_shift": 12.0, | ||
| "audio_flow_shift": 3.0, | ||
| "h3_sampling_profile": "dmd", | ||
| "vae_spatial_scale_factor": 16, | ||
| "audio_sampling_rate": 32000, | ||
| "text_encoder_tensor_parallel": true, | ||
| "lora_dynamic_apply": false, | ||
| "lora_configs": [ | ||
| { | ||
| "path": "/data/wushuo1/models/Minimax-h3-Turbo/Minimax-h3-Turbo/minimax_h3_ref2v_turbo_4step_v0.1_bf16.safetensors", | ||
| "strength": 1.0, | ||
| "alpha": 8 | ||
| } | ||
| ], | ||
| "parallel": { | ||
| "tensor_p_size": 8 | ||
| } | ||
| } |
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
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.
这里应该是sparse和packed之后的计算不兼容,所以临时用for循环来替代了。效率肯定低。spare先这样么?