Repository navigation
feat: add native SDXL base 1.0 inference - #1754
Open
LancelottJ wants to merge 8 commits into
Open
LancelottJ wants to merge 8 commits into
LancelottJ wants to merge 8 commits into
Conversation
LancelottJ
force-pushed
the
feat/sdxl-a100-20261124
branch
from
November 24, 2026 09:02
1c0bf66 to
a407f25
Compare
LancelottJ
force-pushed
the
feat/sdxl-a100-20261124
branch
from
November 24, 2026 09:46
a407f25 to
6ed026e
Compare
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.
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
954a4b89c74fe08cadd7305aede97fae901d35d6accepts the supplied user input and produces a valid output; the result is byte-identical to the earlier BF16 CLI check at94522e29e16c680cc7a15569f7215c2d88c74c9d. 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.