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 zackees committed May 5, 2023
1 parent 1a5bb2a commit 74069fd
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 @@ -12,8 +13,8 @@


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 74069fd

Please sign in to comment.