Skip to content

plan A. coexist oait and nvtriton via PYTHONPATH#465

Closed
glassmanK wants to merge 3 commits intogpu-mode:mainfrom
glassmanK:dual-triton-pythonpath
Closed

plan A. coexist oait and nvtriton via PYTHONPATH#465
glassmanK wants to merge 3 commits intogpu-mode:mainfrom
glassmanK:dual-triton-pythonpath

Conversation

@glassmanK
Copy link
Contributor

@glassmanK glassmanK commented Mar 13, 2026

Summary

  • Install both upstream triton (oait 3.6.0) and nvtriton (TileIR backend) side-by-side
  • oait stays in site-packages (default, used by helion and existing benchmarks)
  • nvtriton goes to /opt/nvtriton — activate with PYTHONPATH=/opt/nvtriton ENABLE_TILE=1
  • Removes ENABLE_TILE=0 env default since both backends are now selectable per-run

How it works

pip install --target /opt/nvtriton puts nvtriton in a separate directory. When PYTHONPATH=/opt/nvtriton is set, Python finds nvtriton first (shadows site-packages). When unset, oait triton is used.

Instead of nvtriton replacing upstream triton, install both side-by-side:
- oait triton 3.6.0 in site-packages (default, used by helion)
- nvtriton in /opt/nvtriton (activate with PYTHONPATH=/opt/nvtriton ENABLE_TILE=1)

This lets kernelbot benchmark kernels against both backends in the same image.
Tested: both run GPU kernels end-to-end, helion works with either.
@glassmanK
Copy link
Contributor Author

glassmanK commented Mar 13, 2026

Build & Test Logs

Full --no-cache Docker build log and 10-test validation suite:
https://gist.github.com/glassmanK/0a78cba04a6d7ba866e192cb7ae3dd16

Build summary

  • Base: ghcr.io/actions/actions-runner:latest (Ubuntu 24.04)
  • CUDA toolkit 13.0, Python 3.13, PyTorch cu130
  • oait triton 3.6.0 in site-packages
  • nvtriton 3.6.0 in /opt/nvtriton (TileIR backend)
  • helion, flash-linear-attention, causal-conv1d all installed

TileIR backend verification

  • Phase 1A: TileIRDriver activation ✓
  • Phase 1B: IR pipeline (convert-triton-to-cuda-tile pass fires) ✓
  • Phase 3: test_core.py — running (will update)

@glassmanK glassmanK changed the title Dual Triton: coexist oait and nvtriton via PYTHONPATH plan A. coexist oait and nvtriton via PYTHONPATH Mar 13, 2026
@glassmanK glassmanK closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant