Skip to content

Commit

Permalink
Fix model caching for diffusion models and multiple GPUs (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
helena-intel authored Apr 17, 2024
1 parent ff5d185 commit bce36d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/intel/openvino/modeling_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def _compile(self):
if (
"CACHE_DIR" not in self.ov_config.keys()
and not str(self._model_dir).startswith(gettempdir())
and self.device.lower().split(":")[0] == "gpu"
and "gpu" in self.device.lower()
):
self.ov_config["CACHE_DIR"] = os.path.join(self._model_dir, self._model_name, "model_cache")

Expand Down

0 comments on commit bce36d2

Please sign in to comment.