Skip to content

feat: add native HY-Motion, SF3D and SDXL A100 inference - #1751

Closed
LancelottJ wants to merge 1 commit into
ModelTC:mainfrom
LancelottJ:feat/hymotion-sf3d-sdxl-a100-20261124
Closed

LancelottJ wants to merge 1 commit into
ModelTC:mainfrom
LancelottJ:feat/hymotion-sf3d-sdxl-a100-20261124

Conversation

@LancelottJ

@LancelottJ LancelottJ commented Nov 24, 2026 •

Copy link
Copy Markdown

Superseded by three independent, directly mergeable model PRs:

Each new PR contains only its own model and required shared helpers. Standalone runtime, native-output parity, packaging, lint and all six merge orders have been checked.


Adds native inference for tencent/HY-Motion-1.0 (full), stabilityai/stable-fast-3d, and stabilityai/stable-diffusion-xl-base-1.0 through the standard LightX2V runner and CLI. The new runners produce motion NPZ, single-image textured GLB, and text-to-image PNG outputs, respectively.

Implementation

  • Separate model weight structures/loading from inference computation, with model-specific schedulers, request specifications and configuration loaders.
  • Reuse the existing MM, Conv2d, LayerNorm, RMSNorm, attention and RoPE registries through small shared shape/dtype bindings. Retain native masks, tensor layouts, precision and rounding behavior; Transformers supplies tokenizers only.
  • Provide matching per-model JSON configurations and launchers for NVIDIA, MLU, MetaX and Ascend NPU. NVIDIA A100 single-card inference is implemented; the other platforms are explicit placeholders that stop before inference.
  • Write synchronized request latency and peak GPU memory to output sidecars. Latency covers input preprocessing through output serialization and excludes model initialization.
  • Preserve upstream source attribution/licenses. Prepare SF3D's 15 MB fixed tetrahedral grid separately using a pinned source commit and SHA256 verification.

Scope

Based on main e574493231fc019abe70f6e7727902ea45e59474. The only changes to existing upstream files are three entries in models/runners/registry.py and model package-data declarations in pyproject.toml. All other additions are specific to these models, their shared bindings, setup documentation, configurations, launchers and regression checks. Existing framework files are not copied or replaced. No model checkpoints, datasets, generated outputs, local environments or machine-specific paths are included.

Validation

Validated on NVIDIA A100-SXM4-40GB with PyTorch 2.6.0 / CUDA 12.4:

  • pre-commit run --all-files: passed all applicable upstream hooks.
  • Metadata/CLI and A100 contract checks: 22 passed. Covers request isolation/defaults/admission, masked attention, norm/rotary math, strided/autocast linear dispatch, Euler scalar promotion, native frame clamping, fixed asset integrity and checksum/atomic asset preparation.
  • Nine frozen random dataset inputs compared with independently generated native references: three HumanML3D motions, one prompt each from GenEval/Parti/COCO, and the first image of three GSO objects. All 150 captured tensor pairs matched element-for-element, including dtype and shape, with no missing captures. Motion arrays matched exactly; all three PNG and all three deterministic GLB files were byte-identical.
  • NVIDIA SDXL launcher through lightx2v.infer: completed and produced a byte-identical native PNG.
  • Clean wheel build: all 103 changed/added package files matched source bytes, including fixed geometry/statistics and licenses; the external SF3D grid is excluded.

SF3D comparisons use the same seed and deterministic-algorithm settings on both sides (CUBLAS_WORKSPACE_CONFIG=:4096:8). A fixed seed alone does not make native CUDA UV/normal/tangent reductions deterministic. This validation uses samples, not a full-dataset benchmark. Quantization, parallelism, offload, CUDA graphs and feature caching are not implemented for these runners.

Setup, checkpoint revisions and runnable commands: three-model guide, HY-Motion, SF3D, SDXL.

@LancelottJ LancelottJ closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant