Skip to content

Commit

Permalink
address #328
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jun 21, 2024
1 parent 3bee377 commit b281d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion denoising_diffusion_pytorch/attend.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def __init__(

device_properties = torch.cuda.get_device_properties(torch.device('cuda'))

if device_properties.major == 8 and device_properties.minor == 0:
device_version = version.parse(f'{device_properties.major}.{device_properties.minor}')

if device_version > version.parse('8.0'):
print_once('A100 GPU detected, using flash attention if input tensor is on cuda')
self.cuda_config = AttentionConfig(True, False, False)
else:
Expand Down
2 changes: 1 addition & 1 deletion denoising_diffusion_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.8'
__version__ = '2.0.10'

0 comments on commit b281d55

Please sign in to comment.