Skip to content

feat: add native SDXL base 1.0 inference on A100 - #1754

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

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

Conversation

@LancelottJ

@LancelottJ LancelottJ commented Nov 24, 2026 •

Copy link
Copy Markdown

Adds SDXL base 1.0 text-to-image through the standard LightX2V runner and CLI. Users supply their own input and receive the generated model output.

  • Input: User text prompt, optional negative prompt, output size and seed.
  • Output: PNG image, or an image tensor through the Python request interface.

Loads stabilityai/stable-diffusion-xl-base-1.0 from its local checkpoint layout. Dual-CLIP, UNet, VAE and Euler inference are implemented inside LightX2V, with separate weight storage/loading and computation.

The adapter reuses existing Hunyuan-Image3 timestep embeddings, registered token embeddings, shared weight-file loading and other LightX2V operators, preserves the weights/infer separation, and provides local-weight setup instructions plus a one-command launcher. NVIDIA A100 single-card inference is implemented. Matching MLU, MetaX and Ascend NPU scripts/configurations are explicit placeholders.

The only modified upstream file is the runner registry, with one new entry. Additions contain this model, required shared inference components, fixed model assets/licenses, packaging declarations, configurations, launchers and user documentation. This PR can be merged directly into main independently of the other adapters.

Standalone inference through the NVIDIA launcher, package construction and upstream formatting checks passed. The three adapter branches also merge cleanly in every order.

Weight preparation, supported inputs and inference commands.

The CLIP input path reuses Transformers’ Rust fast tokenizer so Unicode punctuation and literal HTML entities follow Transformers 5 semantics. A100 output validation covers 12 normalization-sensitive prompts and one ASCII control: all 13 final PNGs match the original implementation byte for byte.

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