Update t2v_synth_mochi.py
This commit is contained in:
parent
76956cda50
commit
a46643ae5a
@ -308,10 +308,7 @@ class T2VSynthMochiModel:
|
||||
|
||||
comfy_pbar = ProgressBar(sample_steps)
|
||||
|
||||
if hasattr(self.dit, "cublas_half_matmul") and self.dit.cublas_half_matmul:
|
||||
autocast_dtype = torch.float16
|
||||
else:
|
||||
if self.device.type == "mps":
|
||||
if (hasattr(self.dit, "cublas_half_matmul") and self.dit.cublas_half_matmul) or self.device.type == "mps":
|
||||
autocast_dtype = torch.float16
|
||||
else:
|
||||
autocast_dtype = torch.bfloat16
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user