Repository navigation
Add native BF16 VGGT and TRELLIS.2 inference - #1628
Closed
for-the-juan wants to merge 6 commits into
Closed
for-the-juan wants to merge 6 commits into
for-the-juan wants to merge 6 commits into
Conversation
for-the-juan
marked this pull request as ready for review
October 19, 2026 10:06
This was referenced Oct 20, 2026
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.
Summary
Add native BF16 inference for VGGT-1B (
recon) and TRELLIS.2-4B (i23d, 512 pipeline), using LightX2V's runner registry and registered attention/MM backends.Model code has no platform branches, vendor imports, global operator patches, or dependency on an external VGGT/TRELLIS checkout. Platform selection remains in LightX2V's existing infrastructure; operator backends and lookup/preprocessing algorithms are configuration choices.
Validation
action_requiredwith no jobs executed; repository maintainers need to handle that workflow approval/state. The equivalent localpre-commit run --all-filespassed.MLU590-M9D results
Single card per process, 80 GB, driver 6.5.42. Negative pipeline change means faster.
VGGT's gain is in CPU image preprocessing; forward time is unchanged. TRELLIS benefits from sparse neighbor construction during decoding, outside its sampler calls. The TRELLIS main-call statistic reduces the 36 sampler calls within each request, then takes the median across requests; it is not whole-model time. Some
segment_reduceoperations fall back to CPU in this torch_mlu version, and that cost is included.Measurement and scope
The benchmark follows the recorded A100 statistical protocol: 36 VGGT requests / 40 TRELLIS requests, discard the first pair, at least 31 successful effective pairs, alternating A/B order, synchronized pipeline wall time, and device events for VGGT forward / TRELLIS
sample_once(36 calls per request). It saves raw timing records, output comparisons, configuration, environment, and BF16 audit results.TRELLIS fixes an earlier experimental fallback's kernel-index ordering and previously missed BF16 decoder/deformable-convolution operands. Historical mesh quality and latency numbers from that fallback are not acceptance results for this integration. A/B output consistency and numerical operator references are checked here; a full ground-truth dataset quality evaluation has not been rerun.
CUDA/A100 and MetaX performance are unmeasured. VGGT tracking, TRELLIS cascade/1024/1536 pipelines, texture baking, offload, quantization, and distributed inference are outside this PR. GLB output contains geometry; texture voxel attributes are returned separately.
Weights, public test assets, and the vendor runtime/driver are external prerequisites with their own access and license conditions. No local experiment source or private runtime patch is required. The README documents the public GSO archive and its digest; downloading that whole archive has not been repeated during this validation.
See
scripts/bench/reconstruction/README.mdfor installation, normal inference, exact benchmark boundaries, and reproduction commands.