From 3f71c489459d7bab99d30df97e246680722ebd94 Mon Sep 17 00:00:00 2001 From: Zhuohan Li Date: Tue, 5 Aug 2025 11:20:00 -0700 Subject: [PATCH 1/2] Try fix pypi ci --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 72d7411e..f00c72df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,8 +24,7 @@ version = "0.0.1" [project.optional-dependencies] triton = [ - "triton @ git+https://github.com/triton-lang/triton.git", - "triton_kernels @ git+https://github.com/triton-lang/triton.git#subdirectory=python/triton_kernels", + "triton", "safetensors>=0.5.3", "torch>=2.7.0", ] From 3b035f3fa9c5b4458aab67fa929037535f05686d Mon Sep 17 00:00:00 2001 From: Zhuohan Li Date: Tue, 5 Aug 2025 11:27:09 -0700 Subject: [PATCH 2/2] build triton from scratch --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 76b998ef..b50dbc4f 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,13 @@ We also include an optimized reference implementation that uses [an optimized tr To install the reference Triton implementation run ```shell +# You need to install triton from source to use the triton implementation +git clone https://github.com/triton-lang/triton +cd triton/ +pip install -r python/requirements.txt +pip install -e . --verbose --no-build-isolation + +# Install the gpt-oss triton implementation pip install -e .[triton] ```