Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +1 -1
min_dalle/min_dalle.py
CHANGED
@@ -241,7 +241,7 @@ class MinDalle:
|
|
241 |
|
242 |
torch.cuda.empty_cache()
|
243 |
#torch.cpu.empty_cache()
|
244 |
-
with torch.cuda.amp.autocast(dtype=
|
245 |
image_tokens[i + 1], attention_state = self.decoder.forward(
|
246 |
settings=settings,
|
247 |
attention_mask=attention_mask,
|
|
|
241 |
|
242 |
torch.cuda.empty_cache()
|
243 |
#torch.cpu.empty_cache()
|
244 |
+
with torch.cuda.amp.autocast(dtype=torch.bfloat16):
|
245 |
image_tokens[i + 1], attention_state = self.decoder.forward(
|
246 |
settings=settings,
|
247 |
attention_mask=attention_mask,
|