Skip to content

Commit

Permalink
Relax triton requirements for compatibility with pytorch 2.1 and newer (
Browse files Browse the repository at this point in the history
  • Loading branch information
eindenbom authored and yaomingamd committed Nov 27, 2023
1 parent 3746d1e commit 86b7ebb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def read_version(fname="whisper/version.py"):
requirements = []
whisper_rocm = os.getenv('WHISPER_ROCM',default='0')
if sys.platform.startswith("linux") and platform.machine() == "x86_64":
<<<<<<< HEAD
from check_rocm_platform import is_command, check_amd_gpu_rocminfo, check_amd_gpu_lspci, check_rocm_packages
ROCM_PLATFORM = False
if is_command("rocminfo"):
Expand All @@ -30,14 +29,8 @@ def read_version(fname="whisper/version.py"):
print("rocm")
requirements.append("pytorch-triton-rocm>=2.0.1")
else :
requirements.append("triton==2.0.0")
=======
if whisper_rocm == "1" :
requirements.append("pytorch_triton_rocm==2.0.2")
else :
requirements.append("triton==2.0.0")
requirements.append("triton>=2.0.0,<3")

>>>>>>> c41de6ac767b30524779e260969ed4a4d6a43523
setup(
name="openai-whisper",
py_modules=["whisper"],
Expand Down

0 comments on commit 86b7ebb

Please sign in to comment.