Repository navigation
Releases
TileLens 3.1.1
TileLens 3.1.1 fixes the tile-sanitizer, tile-profiler, and tile-race commands, and their triton-* aliases, after a plain pip install tilelens. In 3.1 they failed with ModuleNotFoundError: No module named 'pytest' because pytest was imported at startup even though it is only a test dependency. It is now imported only when a command is asked to run pytest.
pip install -U tilelensIf you are upgrading from triton-viz, see the TileLens 3.1 release notes first.
What's Changed
Full Changelog: v3.1...v3.1.1
TileLens 3.1
TileLens 3.1 is the first release under the new name. It continues Triton-Viz 3.0: the Python package is now tilelens, the PyPI distribution is now tilelens, and the CLI commands are now tile-*.
Install
pip install tilelensUpgrading from triton-viz
Uninstall triton-viz first. The two distributions ship some of the same files, so keeping both installed can break imports and CLI commands.
pip uninstall -y triton-viz
pip install tilelensIf you already installed both, run pip uninstall triton-viz and then pip install --force-reinstall --no-deps tilelens. Restart Python or your notebook kernel after upgrading.
Existing code keeps working:
import triton_vizandtriton_viz.*submodule imports resolve to the sametilelensmodules.- The
TRITON_VIZ_VERBOSE,TRITON_VIZ_NUM_SMS, andTRITON_VIZ_PORTvariables are still read. TheTILELENS_*value wins when both are set. - The
triton-sanitizer,triton-profiler,triton-race-detector, andtriton-visualizercommands still work. - Existing
.tvztraces still load.
In multithreaded programs, import triton_viz in the main thread before other threads import its submodules.
Breaking changes
- The PyPI distribution is
tilelens.triton-viz3.0 is the last release under the old name. - The primary CLI commands are
tile-sanitizer,tile-profiler,tile-race, andtile-visualizer. - The environment variables are
TILELENS_VERBOSE,TILELENS_NUM_SMS, andTILELENS_PORT. - Traces saved by TileLens cannot be loaded by Triton-Viz 3.0 or earlier.
- The web UI stores its theme under a new key, so a saved theme resets once. The API base override is now
window.__TILELENS_API__. triton_vizis now a thin compatibility package. After a bareimport triton_viz, import submodules such astriton_viz.coreexplicitly.
What's Changed
- [DOCS] Add Triton-Sanitizer BibTeX citation to README by @mark14wu in #254
- [DOCS] Update installation instructions for PyPI by @mark14wu in #256
- [CI] Add GitHub Actions workflow for automatic PyPI publishing by @mark14wu in #257
- [FIX][SANITIZER]Fix shape property to use
isinstancecheck by @mark14wu in #262 - [FIX] Add outer loop constraints when checking nested loops by @mark14wu in #258
- [CI] Install neuronx-cc from AWS Neuron repo by @mark14wu in #255
- [FIX] Update dtype/shape handling in ExpandDims and Broadcast by @mark14wu in #259
- [REFACTOR] Extract SymbolicExpr hierarchy into clients/symbolic_engine.py by @mark14wu in #264
- [REFACTOR] Consolidate traceback utilities into
triton_viz/utils/traceback_utils.pyby @mark14wu in #265 - [FIX] Skip warmup in interpreter mode to avoid NoneType error by @mark14wu in #268
- windows install instructions + debloat readme by @latentCall145 in #269
- [NKI+FIX] fix misc. "transpose_x=True" issues with nki matmul by @latentCall145 in #270
- [FIX] Fix Code Context pointing to CLI entry point instead of kernel by @mark14wu in #267
- [FEAT][SANITIZER] Support Block Tensor by @mark14wu in #266
- [COMPAT] Store triton attribute in our own scope to not need triton >= 3.6.0 by @latentCall145 in #272
- [VIZ/FEAT] add dimension lines to selections for load/store by @latentCall145 in #274
- [NKI/REFACTOR] remove nki builder load/store + fix load_transpose2d bugs by @latentCall145 in #273
- [VIZ + FIX] misc visualizer fixes by @latentCall145 in #275
- [DOCS]Add NKI install command on homepage by @mark14wu in #276
- [FEATURE] reject nested trace calls with different clients by @latentCall145 in #279
- [CI/FEAT] Add sanitizer performance benchmark with PR commenting by @mark14wu in #280
- [FEAT+VIZ] N-dimensional visualizer by @latentCall145 in #284
- [REFACTOR] code frame refactor by @latentCall145 in #277
- [CI] Increase benchmark measured iterations from 5 to 20 by @mark14wu in #286
- [REFACTOR] Extract SymbolicClient base class from sanitizer into symbolic_engine by @mark14wu in #281
- [DOCS] Add CONTRIBUTING.md with contributor guidelines by @mark14wu in #285
- [FIX] Convert grid tuple to plain ints to fix unhashable tensor error by @mark14wu in #288
- Ndim viz fixes by @latentCall145 in #290
- Fix CLI wrapper + @triton_viz.trace() decorator conflict by @mark14wu in #291
- [FIX][SANITIZER] Propagate block_type dtype through LoadSymbolicExpr by @mark14wu in #292
- [FIX][SANITIZER] Fix ValueError: Cannot broadcast, rank mismatch by @mark14wu in #289
- native python typing by @latentCall145 in #295
- [FIX][TEST] Use block_type dtype in test_reduce_expr_eval by @mark14wu in #301
- [NKI] nki beta 2 integration (pt 1. dtypes) by @latentCall145 in #297
- [FIX] Normalize scalar NDArray values by @gujialiang123 in #293
- [BENCH][FEAT]Reduce CI benchmark noise by @mark14wu in #294
- [FIX][TEST] Add device attr to FakeTensor for OOB report by @mark14wu in #302
- [REFACTOR] Replace manual try/finally config save/restore with pytest fixtures by @mark14wu in #307
- [REFACTOR] Simplify _CombinedLoopHooks by delegating hook management to ClientManager by @mark14wu in #304
- [REFACTOR] Replace autouse fixtures with explicit per-test fixtures by @mark14wu in #314
- [CI] Use latest Triton from main and add pytest-xdist by @mark14wu in #315
- [FIX] Propagate dtype in UnarySymbolicExpr by @mark14wu in #311
- [REFACTOR] Separate dtype and shape in SymbolicExpr by @mark14wu in #322
- allow tracer records to be saved/loaded by @latentCall145 in #323
- [FEATURE] add download tensor button in viz UI by @latentCall145 in #324
- Add argmax/argmin as symbolic reduce ops with Z3 reasoning by @mark14wu in #316
- [BENCH] Add SwiGLU, Cross Entropy, and Fused Linear JSD benchmarks by @mark14wu in #308
- [REFACTOR] Deduplicate dtype/shape unpacking and remove redundant conversions by @mark14wu in #325
- [FIX] Unwrap TensorWrapper in sanitizer arg_callback by @mark14wu in #326
- Nki beta 2 pt2 by @latentCall145 in #321
- [FIX] Handle stride-0 expanded tensors in sanitizer by @mark14wu in #327
- [FIX] Set shape/dtype on DotSymbolicExpr for reduce ops by @mark14wu in #329
- [FIX] Handle data-dependent loop bounds with integer division in sanitizer by @mark14wu in #328
- [FIX] Handle missing interpreter_builder attributes gracefully by @mark14wu in #354
- Nki beta 2 pt3 by @latentCall145 in #355
- fix nki version install by @latentCall145 in #357
- [FEAT] race_detector PR1: Add race_detector client scaffold with symbolic access capture by @ma...
v3.0
Visualizers are fun, but sometimes debugging kernels requires more than looking at tensors... We rewrote the architecture of Triton-Viz to support new analysis clients and DSLs!
On top of the visualizer, we've added two new analysis clients:
- Profiler: Flags performance hazards like non-unrolled loops, inefficient mask usage, and missing buffer_load optimizations.
- Sanitizer: Symbolically checks tensor memory accesses for out-of-bounds errors.
Just add one decorator and pick your client:
@triton_viz.trace("tracer")
# OR
@triton_viz.trace("profiler")
# OR
@triton_viz.trace("sanitizer")In addition, we added experimental AWS NKI support so you can debug Trainium kernels with just your CPU.
See the examples folder to see how to run your own kernels.
What's Changed
Visualizer
- Published a brand new visualizer with various features.
- Migrated to TypeScript and consolidated shared logic (#247).
Sanitizer
- Refactored the sanitizer to minimize overhead (#236).
- Added virtual memory support for better performance (#99)
- Enhanced PDB-style diagnostic report for OOB errors (#102)
- Added support for new operations: join, bitwise XOR/OR, atomic CAS, bitcast, max/min reduce (#173, #176, #178, #208).
- Multi-Layer Cache optimizations (#98, #215).
Profiler
- Added mask usage percentage tracking (#192)
- Added for-loop unroll tracking (#197, #214)
- Added block sampling feature to randomly sample k blocks from grid (#207)
- Added
buffer_loadapplicability checking (#184)
Homepage
- Published a homepage for the project (#249).
Core
- Added multithreading support (#230)
- Added NKI interpreter support (#206)
- Added
triton.autotunesupport (#119) - Added
triton.heuristicssupport (#216) - Added
triton_viz.__version__with git hash support (#238) - Fixed nested JIT function calls (#124)
Documentation & Examples
- Reorganized examples into sanitizer and visualizer directories (#248)
- Improved installation documentation (#253)
New Contributors
- @gujialiang123 made their first contribution in #179
- @latentCall145 made their first contribution in #199
Full Changelog: v2.0...v3.0