[Bugfix][XPU] Enable LTX-2 family on XPU (#7961)

Signed-off-by: Joshna Medisetty <joshna.medisetty@intel.com>
This commit is contained in:
Joshna-Medisetty authored and GitHub committed 2026-09-24 13:57:38 -05:00
1 parent 7b4dc7633b
commit b539282a9a
2 files changed
+10 -1

No files matched your search

@@ -85,7 +85,7 @@ def _run_ltx_vocoder(vocoder: nn.Module, generated_mel: torch.Tensor) -> torch.T
input_dtype = generated_mel.dtype
module_dtype = next(vocoder.parameters()).dtype
if device_type == "mps":
if device_type in ("mps", "xpu", "cpu"):
if module_dtype != torch.float32:
vocoder.float()
try: