tritonparse 0.2.4.dev20251008071501__py3-none-any.whl → 0.2.4.dev20251010071509__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tritonparse might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tritonparse
3
- Version: 0.2.4.dev20251008071501
3
+ Version: 0.2.4.dev20251010071509
4
4
  Summary: TritonParse: A Compiler Tracer, Visualizer, and mini-Reproducer Generator for Triton Kernels
5
5
  Author-email: Yueming Hao <yhao@meta.com>
6
6
  License-Expression: BSD-3-Clause
@@ -34,13 +34,18 @@ Dynamic: license-file
34
34
  - **📝 Multi-format IR Support** - View TTGIR, TTIR, LLIR, PTX, and AMDGCN
35
35
  - **🎯 Interactive Code Views** - Click-to-highlight corresponding lines across IR stages
36
36
 
37
+ ### 🔧 Reproducer & Debugging Tools
38
+ - **🔄 Standalone Script Generation** - Extract any kernel into a self-contained Python script
39
+ - **💾 Tensor Data Reconstruction** - Preserve actual tensor data or use statistical approximation
40
+ - **🎯 Custom Templates** - Flexible reproducer templates for different workflows
41
+ - **🐛 Bug Isolation** - Share reproducible test cases for debugging and collaboration
42
+
37
43
  ### 📊 Structured Logging & Analysis
38
44
  - **📝 Compilation & Launch Tracing** - Capture detailed events with source mapping
39
45
  - **🔍 Stack Trace Integration** - Full Python stack traces for debugging
40
46
  - **📈 Metadata Extraction** - Comprehensive kernel statistics
41
47
 
42
48
  ### 🛠️ Developer Tools
43
- - **🔧 Reproducer Generation** - Generate standalone Python scripts to reproduce kernels
44
49
  - **🌐 Browser-based Interface** - No installation required, works in your browser
45
50
  - **🔒 Privacy-first** - All processing happens locally, no data uploaded
46
51
 
@@ -87,6 +92,41 @@ tritonparse.utils.unified_parse("./logs/", out="./parsed_output")
87
92
 
88
93
  > **🔒 Privacy Note**: Your trace files are processed entirely in your browser - nothing is uploaded to any server!
89
94
 
95
+ ### 3. Generate Reproducers (Optional)
96
+
97
+ Extract any kernel into a standalone, executable Python script for debugging or testing:
98
+
99
+ ```bash
100
+ # Generate reproducer from first launch event
101
+ tritonparse reproduce ./parsed_output/trace.ndjson.gz --line 2 --out-dir repro_output
102
+
103
+ # Run the generated reproducer
104
+ cd repro_output/<kernel_name>/
105
+ python repro_*.py
106
+ ```
107
+
108
+ **Python API:**
109
+ ```python
110
+ from tritonparse.reproducer.orchestrator import reproduce
111
+
112
+ result = reproduce(
113
+ input_path="./parsed_output/trace.ndjson.gz",
114
+ line_index=1, # Which launch event (1-based)
115
+ out_dir="repro_output"
116
+ )
117
+ ```
118
+
119
+ <details>
120
+ <summary>🎯 Common Reproducer Use Cases (click to expand)</summary>
121
+
122
+ - **🐛 Bug Isolation**: Extract a failing kernel into a minimal standalone script
123
+ - **⚡ Performance Testing**: Benchmark specific kernels without running the full application
124
+ - **🤝 Team Collaboration**: Share reproducible test cases with colleagues or in bug reports
125
+ - **📊 Regression Testing**: Compare kernel behavior and performance across different versions
126
+ - **🔍 Deep Debugging**: Modify and experiment with kernel parameters in isolation
127
+
128
+ </details>
129
+
90
130
  ## 🛠️ Installation
91
131
 
92
132
  **For basic usage (trace generation):**
@@ -117,7 +157,7 @@ pip install triton
117
157
  |----------|-------------|
118
158
  | **[🏠 Wiki Home](https://github.com/meta-pytorch/tritonparse/wiki)** | Complete documentation and quick navigation |
119
159
  | **[📦 Installation](https://github.com/meta-pytorch/tritonparse/wiki/01.-Installation)** | Setup guide for all scenarios |
120
- | **[📋 Usage Guide](https://github.com/meta-pytorch/tritonparse/wiki/02.-Usage-Guide)** | Complete workflow, examples, and reproducer |
160
+ | **[📋 Usage Guide](https://github.com/meta-pytorch/tritonparse/wiki/02.-Usage-Guide)** | Complete workflow, reproducer generation, and examples |
121
161
  | **[🌐 Web Interface](https://github.com/meta-pytorch/tritonparse/wiki/03.-Web-Interface-Guide)** | Master the visualization interface |
122
162
  | **[🔧 Developer Guide](https://github.com/meta-pytorch/tritonparse/wiki/04.-Developer-Guide)** | Contributing and architecture overview |
123
163
  | **[📝 Code Formatting](https://github.com/meta-pytorch/tritonparse/wiki/05.-Code-Formatting)** | Formatting standards and tools |
@@ -30,9 +30,9 @@ tritonparse/tools/format_fix.py,sha256=Ol0Sjui8D7OzHwbamAfGnq8V5Y63uwNaFTKSORN5H
30
30
  tritonparse/tools/load_tensor.py,sha256=94-TiSYlpXJx4MPmGK1ovmZlTt56Q_B3KQeCPaA6Cnw,2734
31
31
  tritonparse/tools/prettify_ndjson.py,sha256=r2YlHwFDTHgML7KljRmMsHaDg29q8gOQAgyDKWJhxRM,11062
32
32
  tritonparse/tools/readme.md,sha256=w6PWYfYnRgoPArLjxG9rVrpcLUkoVMGuRlbpF-o0IQM,110
33
- tritonparse-0.2.4.dev20251008071501.dist-info/licenses/LICENSE,sha256=4ZciugpyN7wcM4L-9pyDh_etvMUeIfBhDTyH1zeZlQM,1515
34
- tritonparse-0.2.4.dev20251008071501.dist-info/METADATA,sha256=X2CK43nr0PhdprpuK3wPsCqtJbqfJwxkbDHafqKq1ec,6766
35
- tritonparse-0.2.4.dev20251008071501.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
- tritonparse-0.2.4.dev20251008071501.dist-info/entry_points.txt,sha256=wEXdaieDoRRCCdhEv2p_C68iytnaXU_2pwt5CqjfbWY,56
37
- tritonparse-0.2.4.dev20251008071501.dist-info/top_level.txt,sha256=ITcTKgp3vf_bXV9vixuQU9IrZa3L1EfDSZwvRzRaoJU,12
38
- tritonparse-0.2.4.dev20251008071501.dist-info/RECORD,,
33
+ tritonparse-0.2.4.dev20251010071509.dist-info/licenses/LICENSE,sha256=4ZciugpyN7wcM4L-9pyDh_etvMUeIfBhDTyH1zeZlQM,1515
34
+ tritonparse-0.2.4.dev20251010071509.dist-info/METADATA,sha256=ONSWyenGLkF6_oc76CNCokUz-ouClVvOTCrpN6KuOOY,8250
35
+ tritonparse-0.2.4.dev20251010071509.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
+ tritonparse-0.2.4.dev20251010071509.dist-info/entry_points.txt,sha256=wEXdaieDoRRCCdhEv2p_C68iytnaXU_2pwt5CqjfbWY,56
37
+ tritonparse-0.2.4.dev20251010071509.dist-info/top_level.txt,sha256=ITcTKgp3vf_bXV9vixuQU9IrZa3L1EfDSZwvRzRaoJU,12
38
+ tritonparse-0.2.4.dev20251010071509.dist-info/RECORD,,