Skip to content

Commit

Permalink
Try installing triton only if linux & x86_64 (openai#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwook authored and ilanit1997 committed May 16, 2023
1 parent 2689b60 commit 77a0a3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
import sys

import pkg_resources
Expand All @@ -11,8 +12,8 @@ def read_version(fname="whisper/version.py"):


requirements = []
if sys.platform.startswith("linux"):
triton_requirement = "triton>=2.0.0.dev20221202"
if sys.platform.startswith("linux") and platform.machine() == "x86_64":
triton_requirement = "triton==2.0.0"
try:
import re
import subprocess
Expand Down

0 comments on commit 77a0a3f

Please sign in to comment.