[RACE-org #55] T2.1 算子编译诊断 CLI & T2.2 Pass Diff 工具 & T2.5 Adapter 层健壮性 - #30
Open
likehupochuan wants to merge 14 commits into
Open
[RACE-org #55] T2.1 算子编译诊断 CLI & T2.2 Pass Diff 工具 & T2.5 Adapter 层健壮性#30likehupochuan wants to merge 14 commits into
likehupochuan wants to merge 14 commits into
Conversation
Implement PassDiagnostic to run TTIR and triton-linalg pipelines pass by
pass, saving before/after IR snapshots, failure diagnostics, summary.json,
and best-effort MLIR op/location.
Add triton_anchor.diagnose CLI with file input and --python
MODULE:FUNCTION runtime TTIR generation, and register triton-anchor-diagnose
console script in setup.py and pyproject.toml.
Add diagnostics unit tests, user documentation, T2.1 implementation
reports, and a retained failing inline-asm sample source.
Add python-frontend and input-parse diagnostic handling before pass
execution. Update CLI output, summaries, tests, runnable failure
samples, and diagnostics documentation. Remove the superseded T2.1
analysis document.
Implement PassDiagnostic to run TTIR and triton-linalg pipelines pass by
pass, saving before/after IR snapshots, failure diagnostics, summary.json,
and best-effort MLIR op/location.
Add triton_anchor.diagnose CLI with file input and --python
MODULE:FUNCTION runtime TTIR generation, and register triton-anchor-diagnose
console script in setup.py and pyproject.toml.
Add diagnostics unit tests, user documentation, T2.1 implementation
reports, and a retained failing inline-asm sample source.
Add python-frontend and input-parse diagnostic handling before pass
execution. Update CLI output, summaries, tests, runnable failure
samples, and diagnostics documentation. Remove the superseded T2.1
analysis document.
Extend PassDiagnostic to capture per-pass timing, IR size changes, and RSS sampling when running adapter pipelines (triton-linalg / triton-shared). All metrics flow into the existing triton-anchor-diagnose CLI and summary.json. Changes: - python/triton_anchor/diagnostics.py: add duration_ms/before_ir_bytes/ after_ir_bytes/ir_delta_bytes/peak_rss_bytes to PassRunRecord; add total_duration_ms/input_ir_bytes/output_ir_bytes/peak_rss_bytes/slowest_pass to PassDiagnosticResult; wire collection in _diagnose_pipeline loop - python/triton_anchor/diagnose.py: display metrics in _print_result - python/triton_anchor/tests/test_diagnostics.py: add 2 tests for metrics - docs/t2_5_adapter_robustness_review.md: design writeup Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add t2_5_adapter_observability.md: usage, metrics, changed files, test results, implementation details, design decision, task context, and follow-up work - Remove t2_5_adapter_robustness_review.md (content merged above) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add Sophgo PPLIR and external-stage diagnostic coverage, update CLI support, tests, docs, and the PPLIR failure sample. Keep generated diagnostic outputs and build artifacts untracked.
Codex AI 代码审查
审查摘要
本次变更新增编译诊断 CLI、逐 pass 诊断核心、StageDiagnostic、文档和故障样例,并通过 Local CI 与定向验证确认核心 CLI/TTIR 路径可运行。审查发现文档宣称的任意 JIT 自动诊断 hook 和 adapter pass 数量与当前仓库实现不一致,建议修正后再合入。 贡献者目标与实现情况
需要处理的问题1. [中风险] 文档宣称的任意 JIT 自动诊断 hook 在当前仓库未实现
2. [低风险] Adapter 指标文档的 pass 数量与实现不一致
可点击代码定位链接固定到本次测试提交,便于提交者修复和审核者核对代码功能。
验证情况
变更文件查看变更文件
|
Codex AI 自动审查
审查摘要
本次变更新增 Triton Anchor 编译诊断 CLI、pass 级诊断 API、样例和文档;新增单元测试、CLI help 和语法编译检查均通过。主要风险是 Adapter 可观测性文档把 triton-linalg pass 数量写成 15,而当前实现和真实 adapter 均为 14。 贡献者目标与实现情况
需要处理的问题1. [低风险] Adapter 可观测性文档中的 pass 数量与实现不一致
可点击代码定位链接固定到本次测试提交,便于提交者修复和审核者核对代码功能。 验证情况
剩余风险
变更文件查看变更文件
PR 功能声明上下文警告未取得与当前 PR 测试提交匹配的功能声明元数据;继续依据代码差异和测试证据分析。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kong-LrYzmain8118ce2da0541a9a13d9aef85237bec98dd4451440654cab2f7c5a47942ae662ee0b5c3f166ae62akong-LrYz/triton-anchor:t2.5-adapter-robustnessdbca9bcf48f24ccf1518351ff5a98441b852601e2026-08-12T04:25:19Z原 PR 描述
原 PR 未提供描述。