Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/26021
Note: Links to docs will display an error until the docs builds have been completed. ❌ 7 Cancelled Jobs, 27 Pending, 1 Unclassified FailureAs of commit 88de827 with merge base b2e7366 ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review effort=max |
|
Claude finished @rascani's task in 36m 28s —— View job PR #26021 reviewThe new tests add lowering, serialization and emulator coverage for four TorchVision models, but three of the four compare constant outputs and none of them assert the exact operator coverage the PR description reports, so I'm requesting changes. Detailed reviewPR Review: #26021SummaryThe PR adds dialect, serialization and emulator tests for MobileNetV2, MobileNetV3-Small, ShuffleNetV2 x0.5 and SqueezeNet 1.1. It also adds a 5 MiB single-app partition table, which only the two MobileNet tests select. There are two main problems:
All 7 changed files were reviewed. Infrastructure
Testing
Code Quality
RecommendationRequest Changes The two Testing findings leave the PR's main deliverable, enforced coverage with real numerical checks, weaker than the description reports. Both have small local fixes. The storage question doesn't block. Test ESP32 Emulators was still in progress when this review was posted. It is the only run that executes the new implementation tests, and the first to run them on ESP32-P4 and ESP32-S31. Specific Comments
Not done: I didn't run the tests, the ESP-IDF builds or the emulator. The findings come from reading the code, CI scripts and workflows. The BatchNorm fix and the artifact-size estimate are untested. |
46142b2 to
7c61f75
Compare
7c61f75 to
a75b82f
Compare
|
@claude review effort=xhigh |
|
Claude finished @rascani's task in 5m 3s —— View job PR #26021 reviewThe second commit now enforces the coverage table exactly, but three of the four models still compare all-zero outputs, so their numerical checks prove almost nothing; I'm requesting changes for that and a few smaller test and doc gaps. Detailed reviewPR Review: #26021SummaryThe PR adds dialect, serialization and emulator tests for MobileNetV2, MobileNetV3-Small, ShuffleNetV2 x0.5 and SqueezeNet 1.1. It also adds an opt-in 5 MiB single-app partition table and updates the large-model docs.
All 10 changed files were reviewed. Infrastructure
Testing
Code Quality
RecommendationRequest Changes Item 1 under Testing is the blocker. The PR's headline deliverable is execution coverage for these models, and for three of four it currently can't detect arithmetic regressions. The BN calibration fix is local to the fixtures and avoids a follow-up PR. Everything else is minor. The storage note is an estimate and does not block. Specific Comments
Not done: I couldn't run Python, the tests, the ESP-IDF builds or the emulator, because the commands needed approval. The findings come from reading the code, the CI scripts and the workflow. The BatchNorm fix, the artifact-size estimate and the ESP-IDF path-resolution behavior are untested. |
Add paired dialect, serialization, and implementation tests for MobileNetV2, MobileNetV3 Small, ShuffleNetV2 x0.5, and SqueezeNet 1.1 using standard seeded models and synthetic calibration inputs. Give the two MobileNet implementation tests an explicit 5 MiB app partition configuration and isolate its firmware build directory. Preserve the example's default dual-OTA layout and derive the README's SPIFFS commands from the generated partition table. Authored with AI assistance using Codex.
Check the complete lowered operator multiset for each TorchVision model, including explicit zero-count expectations. Verify that serialized plans contain neither delegates nor Fused Quant operators, and print the coverage report for CI. Point large-model troubleshooting at the existing tested partition table and remove the stale partition example. The four dialect and serialization tests and targeted lint passed; the combined stack also passed model coverage and serialization checks. Authored with AI assistance using Codex.
Use the shared model report and serialization checks for MLPerf Tiny, and give the TorchVision fixtures an actionable missing-scratch-bindings error. Authored with AI assistance using Codex.
a75b82f to
88de827
Compare
|
@claude review effort=xhigh Please re-review head 88de827. MLPerf Tiny now reuses the existing model coverage/serialization helper, and each TorchVision fixture fails clearly if ESP-NN scratch bindings are missing. All eight MLPerf Tiny/TorchVision dialect and serialization cases passed with bindings enabled. Seeded weights, calibration, tolerances, partitions, and CI selection are unchanged. Agreed deferrals:
Declined for this PR:
Please distinguish new correctness defects from these scoped follow-ups. Review only; do not modify the branch. |
|
Claude finished @rascani's task in 3m 48s —— View job PR #26021 re-review (head 88de827)The latest commit introduces no new correctness defect in what CI runs; one minor new local-run problem is that the TorchVision implementation tests now error instead of skipping without the build env. With the deferrals you listed accepted, nothing blocks. Detailed reviewPR Review: #26021SummaryThe PR adds dialect, serialization and emulator tests for four TorchVision models, plus an opt-in 5 MiB partition table. The latest commit moves MLPerf Tiny onto MLPerf refactor: The three reviewers and I checked it against the old test, and it removes no check:
What's left:
All 11 changed files were reviewed. I left out everything you deferred or declined: constant outputs and numerical fixtures, BN calibration and tolerance changes, the empty/same-stem partition keys, select_ops variants, artifact storage and README expansion. Testing
Code QualityThese were raised last round, were not addressed, and are not in your deferral list. None of them blocks.
Latent only, not triggered by any current model: RecommendationApprove, with the
Not done: I didn't run pytest, the ESP-IDF builds or the emulator, because the commands needed approval. The findings come from reading the code, the CI script and the diffs. I didn't modify the branch, as you asked. |
Summary
Expand Espressif operator-library coverage beyond MLPerf Tiny with MobileNetV2, MobileNetV3 Small, ShuffleNetV2 x0.5, and SqueezeNet 1.1. Each model has before/after operator expectations, a dialect/serialization test, and an implementation test using the existing ESP runner. Models use standard 1,000-class outputs, seeded synthetic weights and inputs, and 96×96 images. The fixtures require ESP-NN scratch bindings and reuse the same coverage and serialization checks as the MLPerf Tiny tests.
The two MobileNet firmware images exceed the example's default app-slot capacity. Add an explicit 5 MiB single-app test partition table within 8 MiB flash, selected only by those tests, and isolate firmware build directories by partition configuration. The default dual-OTA table is unchanged. Update SPIFFS instructions to look up storage size and address from the generated partition table.
Measured coverage:
These tests cover graph lowering, serialization, and execution. The review panel identified a numerical-coverage limitation in the normal seeded fixtures: both MobileNet outputs are zero, and ShuffleNet's final mean collapses to zero before the classifier. Their final-output comparisons therefore cannot catch all internal arithmetic or input-data regressions. Stronger numerical model fixtures remain a follow-up.
Stacks on #26019.
Test plan
All eight MLPerf Tiny and TorchVision dialect/serialization cases passed with the shared coverage helper. With scratch bindings enabled and the existing optimized ESP32-S3 runtime:
4 passed, with two inferences per model. Generated firmware tables confirmed that MobileNet uses the 5 MiB app and the other models use the default OTA layout. Partition parsing and the README's SPIFFS size lookup and image generation were checked. Formatting, flake8, and
git diff --checkpassed. Three independent agent reviews found the numerical-coverage limitation above and no other actionable issues.Local validation used Torch 2.13.0, TorchVision 0.28.0, the repository's TorchAO source pin, and ESP-NN 1.5.0. The newer repository-pinned Torch/TorchVision versions and P4/S31 or physical-device execution have not been validated locally.
Authored with AI assistance using Codex.