[Bugfix] multimodal_gen(hunyuan3d): honor config precisions for delight/paint#22289
Open
jy-song-hub wants to merge 6 commits into
Open
[Bugfix] multimodal_gen(hunyuan3d): honor config precisions for delight/paint#22289jy-song-hub wants to merge 6 commits into
jy-song-hub wants to merge 6 commits into
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Contributor
Author
|
The following unit test was used to validate the correctness of this change. As the code modification is small while the test is relatively lengthy, it is included here instead of in the codebase to avoid unnecessary bloat. |
This was referenced Apr 7, 2026
Contributor
Author
|
@mickqian Please take a look. Thanks! |
Replace hardcoded fp16 casts with config-driven dtypes for delight, VAE and UNet, with CPU/MPS-safe fp32 fallback. Also pass delight_negative_prompt from config. No behavior change on CUDA when config is fp16/bf16.
fbfb6d9 to
3716fb7
Compare
mickqian
approved these changes
Apr 23, 2026
Collaborator
|
/tag-and-rerun-ci |
2 tasks
Contributor
Author
|
/rerun-failed-ci |
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.
Motivation
Hunyuan3D paint currently hardcodes fp16 for the delight pipeline, VAE, and UNet, ignoring Hunyuan3D2PipelineConfig.{dit_precision, vae_precision} . This breaks CPU/MPS (lack of half/bfloat support) and makes precision behavior inconsistent across pipelines. Also, the delight stage ignores delight_negative_prompt from config.
Modifications
Accuracy Tests
Tested via unit test. To avoid expanding the PR surface area, the unittest is not included in this PR. For the unittest details, see the code snippet in the comment. Local unit check (not included in this PR) validated that:
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci