Skip to content

feat: add native Stable Fast 3D inference - #1753

Open
LancelottJ wants to merge 7 commits into
ModelTC:mainfrom
LancelottJ:feat/sf3d-a100-20261124
Open

LancelottJ wants to merge 7 commits into
ModelTC:mainfrom
LancelottJ:feat/sf3d-a100-20261124

Conversation

@LancelottJ

@LancelottJ LancelottJ commented Nov 24, 2026 •

Copy link
Copy Markdown

Adds user-facing Stable Fast 3D single-image mesh generation on a single NVIDIA A100 or MetaX C500. Users supply one image and receive a textured PBR GLB through the standard runner and per-platform launchers. Weights and inference functions are separated and reuse registered LightX2V operators. The MetaX C500 entry is implemented and validated below; see the platform documentation for the other hardware entries.

Precision: DINOv2, OpenCLIP, camera conditioning, the two-stream transformer and triplane upsampling use BF16. Normalization/distribution statistics, sampling coordinates, the geometry/material field decoder, marching tetrahedra, UVs and texture baking retain FP32.

Scope: model inference, its shared operator bindings, configs, installation instructions and launchers only. Dataset manifests, accuracy metrics and latency measurement remain in separate evaluation PRs.

Validation for the BF16 update: Python syntax, Ruff, JSON parsing, shell syntax and diff checks pass. A real public CLI request on one A100 produced a nonempty textured PBR GLB. Actual operator observations confirm BF16 main matrix/convolution outputs and the documented FP32 exceptions. GPU resource isolation, completion acknowledgement and process cleanup passed.

Complete BF16 quality and per-input end-to-end latency have been measured and independently audited in the separate evaluation PR #1756. Dataset manifests, metric code and per-input timing results remain in that developer evaluation PR. No cross-precision exact-output parity is claimed.

BF16 A100 user-inference validation: the public CLI at 0b20d6354c0d6290c6740d977f89c3fffaea4f6a accepts the supplied user input and produces a valid output; the result is byte-identical to the earlier BF16 CLI check at 3a83332abc931a8b2da9e4ade118834b8fa22f8a. The main model path uses BF16 with the documented FP32 exceptions.

Complete A100 dataset quality and per-input end-to-end measurements are published separately in #1756, with their exact measured inference/evaluator revisions and hashes. Subsequent platform commits are preserved; their short CLI checks are not described as full-dataset remeasurement. This inference PR contains no dataset harness or accuracy/latency evaluation code.

MetaX C500: the public image-to-mesh CLI produced a nonempty GLB with UVs, base-color and normal textures, and metallic/roughness material factors. MetaX texture rasterization/interpolation uses the original released CPU extension and returns results to the accelerator; texture functionality is retained. Main neural-network work remains BF16 with the original FP32 exceptions. Original A100 CUDA texture code, platform configs and launchers are preserved. Full-dataset evaluation belongs to #1756.

Validated environment: Python 3.10, PyTorch 2.8.0+metax3.5.3.9, MACA SDK 3.5.3.18 on MetaX C500. An isolated image recipe and MetaX installer are included; no datasets or evaluation harness are added to this inference PR.
Post-platform-update CLI validation at 718d4132824519efd614a52f33f763644dc8aef7: the public MetaX CLI output is byte-identical to the earlier C500 user-inference check, and actual operator dtype counts are unchanged. Shared-platform updates preserve the MetaX BF16 path and documented FP32 exceptions. Complete dataset measurements remain in the separate evaluation PR with their exact measured revisions.

Ascend NPU support: Stable Fast 3D inference

Real image-to-3D CLI output validated as a GLB with UVs and 1024-pixel PBR textures. The original CPU geometry extensions provide UV unwrapping and texture baking; an equivalent NPU fold implementation preserves texture dilation.

Preserves the original BF16/FP32 computation boundaries, weights, sampling parameters, and existing NVIDIA/MLU/MetaX paths. NPU FP32 operations disable HF32 within their scoped execution. No A100 feature is removed.

Validation includes real NPU inference, dtype audits, and scoped precision/operator checks. This does not establish numerical parity with A100.

@LancelottJ LancelottJ changed the title feat: add native Stable Fast 3D inference on A100 Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants