Skip to content

Commit

Permalink
fix triton version check (#3345)
Browse files Browse the repository at this point in the history
* fiix triton version check

* add xpu check
  • Loading branch information
faaany authored Jan 17, 2025
1 parent fbfa53b commit 02d2561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/accelerate/utils/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ def is_timm_available():


def is_triton_available():
if is_xpu_available():
return _is_package_available("triton", "pytorch-triton-xpu")
return _is_package_available("triton")


Expand Down

0 comments on commit 02d2561

Please sign in to comment.