Skip to content

Commit 4f9b4e6

Browse files
authored
Run FA2 tests in CI (huggingface#40397)
up Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
1 parent 28ca27c commit 4f9b4e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docker/transformers-all-latest-gpu/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ RUN python3 -m pip install --no-cache-dir bitsandbytes
5151
# Some tests require quanto
5252
RUN python3 -m pip install --no-cache-dir quanto
5353

54+
# After using A10 as CI runner, let's run FA2 tests
55+
RUN python3 -m pip uninstall -y ninja && python3 -m pip install --no-cache-dir ninja && python3 -m pip install flash-attn --no-cache-dir --no-build-isolation
56+
57+
# TODO (ydshieh): check this again
5458
# `quanto` will install `ninja` which leads to many `CUDA error: an illegal memory access ...` in some model tests
5559
# (`deformable_detr`, `rwkv`, `mra`)
5660
RUN python3 -m pip uninstall -y ninja

0 commit comments

Comments
 (0)