Repository navigation
Support exclusive raw-logit output dumps (#24505) - #24505
JakeStevens wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24505
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 Cancelled Jobs, 1 Pending, 3 Unrelated FailuresAs of commit df7f7b1 with merge base ee4b85b ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@JakeStevens has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129375473. |
This PR needs a
|
|
@claude review effort=max |
|
Claude finished @shoumikhin's task in 22m 33s —— View job PR Review: #24505Nothing blocks this PR. The main gaps: tolerance errors are still caught after the dump is written (the description says otherwise), nothing tests the new runner behavior, and neither the error messages nor the docs say the dump path must not already exist. Detailed reviewSummaryThe PR adds
All five files were reviewed. I couldn't build or run anything because this job doesn't allow compiler invocations, so everything below comes from reading the code. Code Quality
Testing
API Design
Specific Comments
RecommendationApprove. Nothing blocks. The two cheapest changes worth making before landing:
Review steps
|
Summary: Add optional `--dump_output` to the native classification runner for independent full-output validation. Write the original FP32 logits before reference comparison, including mismatches and non-finite outputs, without altering their bits or numerical acceptance. The runner loads `--categories` and `--expected` before creating the dump, so an input error exits 2 without leaving a file, and a missing reference cannot be satisfied by the runner's own dump. As a result, a bad `--expected` path now fails before the top-5 and argmax are printed, even without `--dump_output`. `write_floats` removes an incomplete file when the write or close fails. The LLM runner's `--dump_first_logits` now uses it instead of its own copy of the same logic. This change was written with help from Claude Code. Differential Revision: D129375473
4aa83a0 to
cfb78f8
Compare
Summary: Add optional `--dump_output` to the native classification runner for independent full-output validation. Write the original FP32 logits before reference comparison, including mismatches and non-finite outputs, without altering their bits or numerical acceptance. The runner loads `--categories` and `--expected` before creating the dump, so an input error exits 2 without leaving a file, and a missing reference cannot be satisfied by the runner's own dump. As a result, a bad `--expected` path now fails before the top-5 and argmax are printed, even without `--dump_output`. `write_floats` removes an incomplete file when the write or close fails. The LLM runner's `--dump_first_logits` now uses it instead of its own copy of the same logic. This change was written with help from Claude Code. Differential Revision: D129375473
cfb78f8 to
8f6c233
Compare
Summary: Add optional `--dump_output` to the native classification runner for independent full-output validation. Write the original FP32 logits before reference comparison, including mismatches and non-finite outputs, without altering their bits or numerical acceptance. The runner loads `--categories` and `--expected` before creating the dump, so an input error exits 2 without leaving a file, and a missing reference cannot be satisfied by the runner's own dump. As a result, a bad `--expected` path now fails before the top-5 and argmax are printed, even without `--dump_output`. `write_floats` removes an incomplete file when the write or close fails. The LLM runner's `--dump_first_logits` now uses it instead of its own copy of the same logic. This change was written with help from Claude Code. Differential Revision: D129375473
8f6c233 to
df7f7b1
Compare
Summary:
Add optional
--dump_outputto the native classification runner for independent full-output validation. Write the original FP32 logits before reference comparison, including mismatches and non-finite outputs, without altering their bits or numerical acceptance.The runner loads
--categoriesand--expectedbefore creating the dump, so an input error exits 2 without leaving a file, and a missing reference cannot be satisfied by the runner's own dump. As a result, a bad--expectedpath now fails before the top-5 and argmax are printed, even without--dump_output.write_floatsremoves an incomplete file when the write or close fails. The LLM runner's--dump_first_logitsnow uses it instead of its own copy of the same logic.This change was written with help from Claude Code.
Differential Revision: D129375473