Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Oct 10, 2023
1 parent ba8dd76 commit 8144b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
container: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
markers: 'gpu'
pytest_command: 'coverage run -m pytest'
# TODO: After the PR with the flash attention 2 images goes in, add the new unit test suite
# TODO: After the PR with the flash attention 2 images goes in, add the new unit test suite
# - name: 'gpu-2.1.0-flash2'
# container: # UPDATE AFTER THIS PR GOES TO PRODUCTION IMAGE
# markers: 'gpu'
Expand Down
1 change: 1 addition & 0 deletions llmfoundry/models/layers/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def is_flash_v2_installed():
return False
return version.parse(flash_attn.__version__) >= version.parse('2.0.0')


def is_flash_v1_installed():
try:
import flash_attn as flash_attn
Expand Down

0 comments on commit 8144b6b

Please sign in to comment.