We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8201938 commit da5a587Copy full SHA for da5a587
src/huggingface_inference_toolkit/diffusers_utils.py
@@ -74,8 +74,7 @@ def __call__(
74
75
# Call pipeline with parameters
76
if self.pipeline.device.type == "cuda":
77
- model_dtype = next(self.pipeline.parameters()).dtype
78
- with torch.autocast("cuda", dtype=model_dtype):
+ with torch.autocast("cuda", dtype=torch.bfloat16):
79
out = self.pipeline(prompt, num_images_per_prompt=1, **kwargs)
80
else:
81
0 commit comments