Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/scripts/build_triton_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ def build_triton(
cwd=triton_basedir,
)

# For gpt-oss models, triton requires this extra triton_kernels wheel
# triton_kernels came after pytorch release/2.8
triton_kernels_dir = Path(f"{triton_basedir}/python/triton_kernels")
check_call([sys.executable, "-m", "build", "--wheel"], cwd=triton_kernels_dir, env=env)
kernels_whl_path = next(iter((triton_kernels_dir / "dist").glob("*.whl")))
shutil.copy(kernels_whl_path, Path.cwd())

return Path.cwd() / whl_path.name


Expand Down