Skip to content

Commit d243581

Browse files
committed
fix sdxl_smooth_quant
Signed-off-by: xin3he <xin3.he@intel.com>
1 parent 3835cac commit d243581

File tree

1 file changed

+1
-0
lines changed
  • examples/3.x_api/pytorch/diffusion_model/diffusers/stable_diffusion/smooth_quant

1 file changed

+1
-0
lines changed

examples/3.x_api/pytorch/diffusion_model/diffusers/stable_diffusion/smooth_quant/sdxl_smooth_quant.py

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def main():
361361
torch_dtype=dtype,
362362
use_safetensors=True,
363363
)
364+
pipeline = pipeline.to(dtype) # Ensure all modules are set as dtype
364365
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
365366

366367
# This is a list of prompts

0 commit comments

Comments
 (0)