Skip to content

Commit

Permalink
sdxl torch compilation comment (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
kousun12 authored Oct 17, 2023
1 parent e97962a commit c424d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 06_gpu_and_ml/stable_diffusion/stable_diffusion_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def __enter__(self):
**load_options,
)

# These suggested compile commands actually increase inference time, but may be mis-used.
# Compiling the model graph is JIT so this will increase inference time for the first run
# but speed up subsequent runs. Uncomment to enable.
# self.base.unet = torch.compile(self.base.unet, mode="reduce-overhead", fullgraph=True)
# self.refiner.unet = torch.compile(self.refiner.unet, mode="reduce-overhead", fullgraph=True)

Expand Down

0 comments on commit c424d46

Please sign in to comment.