[Feat] Support Hunyuan3D-2#18170
Merged
mickqian merged 100 commits intosgl-project:mainfrom Mar 2, 2026
Merged
Conversation
Contributor
Author
Fixed |
yhyang201
approved these changes
Feb 25, 2026
Collaborator
|
/rerun-failed-ci |
# Conflicts: # python/pyproject.toml
Collaborator
|
/rerun-failed-ci |
9a4cc46 to
08fc01f
Compare
Collaborator
|
/rerun-failed-ci |
mickqian
approved these changes
Feb 27, 2026
Collaborator
|
/rerun-failed-ci |
1 similar comment
Collaborator
|
/rerun-failed-ci |
Collaborator
|
since this is a huge PR, please keep monitoring the model correctness and code quality. Cheers 🙂 |
Contributor
Author
Yes, sir |
Kangyan-Zhou
pushed a commit
to Kangyan-Zhou/sglang
that referenced
this pull request
Mar 4, 2026
Co-authored-by: yingluosanqian <yingluosanqian@gmail.com> Co-authored-by: daiweitao <dwti614707404@163.com> Co-authored-by: Mick <mickjagger19@icloud.com>
magicYang1573
pushed a commit
to magicYang1573/sglang
that referenced
this pull request
Mar 9, 2026
Co-authored-by: yingluosanqian <yingluosanqian@gmail.com> Co-authored-by: daiweitao <dwti614707404@163.com> Co-authored-by: Mick <mickjagger19@icloud.com>
Wangzheee
pushed a commit
to Wangzheee/sglang
that referenced
this pull request
Mar 21, 2026
Co-authored-by: yingluosanqian <yingluosanqian@gmail.com> Co-authored-by: daiweitao <dwti614707404@163.com> Co-authored-by: Mick <mickjagger19@icloud.com>
JustinTong0323
pushed a commit
to JustinTong0323/sglang
that referenced
this pull request
Apr 7, 2026
Co-authored-by: yingluosanqian <yingluosanqian@gmail.com> Co-authored-by: daiweitao <dwti614707404@163.com> Co-authored-by: Mick <mickjagger19@icloud.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.
Motivation
Support Hunyuan3D-2 (2.0)
Modifications
Serve
mesh_api.py: exposes/v1/meshescreate/list/retrieve/delete and mesh content download.Pipeline Config
Hunyuan3D2PipelineConfig(task_type=I2M): shape/paint/delight subfolders and related hyperparameters; DiT/VAE config references.configs/models/dits/hunyuan3d.py,configs/models/vaes/hunyuan3d.py, andconfigs/sample/hunyuan3d.py(Hunyuan3DSamplingParams).base.py: addedModelTaskType.I2M,data_type()returnsDataType.MESH.Model Architecture
runtime/models/dits/hunyuan3d.py(Hunyuan3DShapeModel, Basic2p5DTransformerBlock, etc.).runtime/models/vaes/hunyuan3d_vae.py(Hunyuan3DShapeVAE).runtime/models/encoders/hunyuan3d.py(Hunyuan3DShapeConditioner, Hunyuan3DShapeImageProcessor, etc.).runtime/models/schedulers/hunyuan3d_scheduler.py.runtime/models/mesh3d_utils.py;csrc/render/hunyuan3d_rasterizer,csrc/render/mesh_processor(C++/CUDA).Pipeline Stages
hunyuan3d_shape.py— BeforeDenoising → Denoising → Export → Save.hunyuan3d_paint.py— Preprocess → TexGen → Postprocess.hunyuan3d_pipeline.py—Hunyuan3D2Pipelinecomposes the above stages and uses_resolve_class/resolve_hunyuan3d_toolto resolve non-diffusers components.Model Loading Flow
Attention Backend Adaptation
Accuracy Tests
Align with Hunyuan3D 2.0
How to Use
TP
Example
Open glb file in https://gltf-viewer.donmccurdy.com/
1
input
output
screenshot
1 gpu
https://github.com/Prozac614/Hunyuan3D-example/blob/main/1/1gpu.glb
tp 2
https://github.com/Prozac614/Hunyuan3D-example/blob/main/1/tp.glb
2
input
output
screenshot
1 gpu
https://github.com/Prozac614/Hunyuan3D-example/blob/main/2/1gpu.glb
tp 2
https://github.com/Prozac614/Hunyuan3D-example/blob/main/2/tp2.glb
3
input
output
screenshot
1gpu
https://github.com/Prozac614/Hunyuan3D-example/blob/main/3/1gpu.glb
tp 2
https://github.com/Prozac614/Hunyuan3D-example/blob/main/3/output_20260219-153808.glb
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci