Skip to content

feat(example): add SDXL MXFP8 RTN workflow - #2562

Merged
chensuyue merged 1 commit into
intel:mainfrom
changwangss:feat/sdxl-mxfp8-example
Sep 15, 2026
Merged

chensuyue merged 1 commit into
intel:mainfrom
changwangss:feat/sdxl-mxfp8-example

Conversation

@changwangss

@changwangss changwangss commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Type of Change

feature

Description

Add a standalone Stable Diffusion XL MXFP8 example under stable_diffusion/mxfp8. The example provides:

  • calibration-free pure RTN quantization with iters=0 and disable_opt_rtn=True
  • BF16 and MXFP8 image generation
  • balanced multi-GPU COCO2014 dataset splitting without dropping samples
  • CLIP, CLIP-IQA, and ImageReward evaluation
  • documented SDXL COCO2014 BF16 and MXFP8 RTN results

The workflow targets stabilityai/stable-diffusion-xl-base-1.0 and keeps the existing Flux example unchanged.

Expected Behavior & Potential Risk

Users can produce a complete fake-quantized Diffusers SDXL pipeline with MXFP8 pure RTN, then run single- or multi-GPU evaluation. No calibration dataset or tuning samples are required for quantization.

The change only adds a new example directory and does not modify library code or existing examples. Full model quantization is GPU- and resource-intensive.

How has this PR been tested?

  • Python syntax compilation for main.py and dataset_split.py
  • Ruff checks for both Python files
  • Bash syntax checks for run_quant.sh and run_benchmark.sh
  • Balanced dataset split smoke test preserving every input row
  • AutoRoundConfig verification confirming scheme=MXFP8, iters=0, and disable_opt_rtn=True
  • git diff --check

Dependency Change?

No library dependency changes. The new example includes its own requirements.txt.

@changwangss
changwangss force-pushed the feat/sdxl-mxfp8-example branch 2 times, most recently from bbfde6c to c4b52fd Compare September 4, 2026 06:25
@changwangss changwangss changed the title Add SDXL support to diffusion quantization example feat(example): add SDXL MXFP8 RTN workflow Sep 4, 2026
@changwangss
changwangss marked this pull request as ready for review September 4, 2026 06:26
Signed-off-by: changwangss <chang1.wang@intel.com>
@thuang6 thuang6 added this to the 3.10 milestone Sep 15, 2026
@chensuyue
chensuyue merged commit 520b6c5 into intel:main Sep 15, 2026
14 of 15 checks passed
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.

3 participants