Skip to content

Commit

Permalink
Use different torch compile opts
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 1, 2023
1 parent a210f2e commit 3b0a4a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_pipe(
self.pipelines[model_id].enable_model_cpu_offload()
except Exception as e:
logging.error(f"Could not enable CPU offload on the model: {e}")
self.pipelines[model_id].unet = torch.compile(self.pipelines[model_id].unet)
self.pipelines[model_id].unet = torch.compile(self.pipelines[model_id].unet, mode="reduce-overhead", fullgraph=True)
else:
logging.info(f"Keeping existing pipeline. Not creating any new ones.")
self.last_pipe_type[model_id] = pipe_type
Expand Down

0 comments on commit 3b0a4a7

Please sign in to comment.