feat(examples/hunyuanimage): add HunyuanImage3.0-80B inference&finetune#1432
Open
Dong1017 wants to merge 23 commits intomindspore-lab:masterfrom
Open
feat(examples/hunyuanimage): add HunyuanImage3.0-80B inference&finetune#1432Dong1017 wants to merge 23 commits intomindspore-lab:masterfrom
Dong1017 wants to merge 23 commits intomindspore-lab:masterfrom
Conversation
vigo999
approved these changes
Dec 24, 2025
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.
What does this PR do?
Adds
Usage
More information is available in the
README.mdPerformance
Inference experiments are tested on Ascend Atlas 800T A2 machines with MindSpore 2.7.1, using 8 NPUs.
Finetune experiments are tested on Ascend Atlas 800T A2 machines with MindSpore 2.7.0, using 8 NPUs.
Option
Use #1422 to accelerate loading model weights
Limitations
msrunfordistributed execution, which is currently tightly integrated with Gradio. In the current setup, each NPU node spawns an independent process responsible for loading model weights and attempting to start the server on a designated port. While different ports can be assigned to each NPU’s process, the core issue lies in Gradio’slaunchmethod, which blocks the main thread by default (prevent_thread_lock=False). This blocking behavior leads to distributed process deadlock in a multi-NPU environment. Settingprevent_thread_lock = Trueallows the server to start briefly, but it immediately terminates and fails to remain active. As a potential solution, future work may involve replacing the current Gradio-based server with a lightweight web framework such as Flask.Before submitting
What's New. Here are thedocumentation guidelines
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@xxx