Skip to content

feat: add native SDXL base 1.0 inference - #1754

Open
LancelottJ wants to merge 8 commits into
ModelTC:mainfrom
LancelottJ:feat/sdxl-a100-20261124
Open

LancelottJ wants to merge 8 commits into
ModelTC:mainfrom
LancelottJ:feat/sdxl-a100-20261124

Conversation

@LancelottJ

@LancelottJ LancelottJ commented Nov 24, 2026 •

Copy link
Copy Markdown

Adds user-facing Stable Diffusion XL base 1.0 text-to-image on a single NVIDIA A100 or MetaX C500. Users supply a text prompt and receive a generated image 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: Both CLIP text encoders and UNet use BF16. Normalization, time frequencies, CFG and Euler state/updates, and VAE decoding retain FP32. Existing fp16 checkpoint files are converted to the requested computation dtype at loading.

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 valid 1024x1024 PNG. 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 A100 dataset quality and per-input end-to-end latency are published separately in #1760; dataset evaluation remains outside this inference PR.

BF16 A100 user-inference validation: the public CLI at 954a4b89c74fe08cadd7305aede97fae901d35d6 accepts the supplied user input and produces a valid output; the result is byte-identical to the earlier BF16 CLI check at 94522e29e16c680cc7a15569f7215c2d88c74c9d. 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 #1760, 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 text-to-image CLI produced a valid 1024x1024 PNG. CLIP and UNet matrix/convolution work remains BF16; the original FP32 normalization, scheduler and VAE boundaries remain. Original A100, MLU and Ascend configuration/launcher files are preserved. Full-dataset evaluation belongs to #1760.

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 ec43872062003d7b5ed2506f4a0c9ef8cfcbd50b: 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: SDXL inference

Real text-to-image CLI output validated as a 1024-by-1024 PNG using the original sampling configuration.

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 force-pushed the feat/sdxl-a100-20261124 branch from a407f25 to 6ed026e Compare November 24, 2026 09:46
@LancelottJ LancelottJ changed the title feat: add native SDXL base 1.0 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