Skip to content

Update Pico2 docs with CMSIS-NN INT8 support and latency instrumentation#18898

Merged
psiddh merged 3 commits intopytorch:mainfrom
psiddh:pico2_docs
Apr 15, 2026
Merged

Update Pico2 docs with CMSIS-NN INT8 support and latency instrumentation#18898
psiddh merged 3 commits intopytorch:mainfrom
psiddh:pico2_docs

Conversation

@psiddh
Copy link
Copy Markdown
Contributor

@psiddh psiddh commented Apr 14, 2026

Add documentation for the new --cmsis build flag, INT8 quantized model export via export_mlp_mnist_cmsis.py, and updated serial output showing per-inference latency timing and memory usage diagnostics.

Add documentation for the new --cmsis build flag, INT8 quantized model
export via export_mlp_mnist_cmsis.py, and updated serial output showing
per-inference latency timing and memory usage diagnostics.

Co-authored-by: Claude <noreply@anthropic.com>
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 14, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18898

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 76 Pending

As of commit 3d79b20 with merge base 26e2ab8 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 14, 2026
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@psiddh psiddh marked this pull request as ready for review April 14, 2026 22:50
@psiddh psiddh requested a review from mergennachin as a code owner April 14, 2026 22:50
Copilot AI review requested due to automatic review settings April 14, 2026 22:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Pico2 MNIST documentation to describe the new CMSIS-NN INT8 workflow and the expanded runtime diagnostics printed over serial.

Changes:

  • Document FP32 vs INT8 (CMSIS-NN accelerated) model export paths and firmware build commands.
  • Add --cmsis flag usage and include a build script options table.
  • Update example serial output to include per-inference timing, a latency summary, and post-load memory usage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
examples/raspberry_pi/pico2/README.md Adds FP32/INT8 build+export instructions, script flags table, and updated sample serial output/diagnostics.
docs/source/pico2_tutorial.md Mirrors the README updates in the Sphinx tutorial, including the CMSIS-NN INT8 workflow and updated runtime output examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/raspberry_pi/pico2/README.md Outdated
Comment thread docs/source/pico2_tutorial.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 22:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/source/pico2_tutorial.md Outdated
Comment thread examples/raspberry_pi/pico2/README.md
Comment thread examples/raspberry_pi/pico2/README.md Outdated
Comment thread examples/raspberry_pi/pico2/README.md Outdated
Comment thread docs/source/pico2_tutorial.md
Comment thread docs/source/pico2_tutorial.md Outdated
- Memory pools are 200KB (204800 bytes), not 131072/4096
- Memory usage prints before inference loop, not after
- Remove duplicate memory block from after latency summary
- Fix PREDICTED line to include 🎯 prefix matching main.cpp

Co-authored-by: Claude <noreply@anthropic.com>
@psiddh psiddh merged commit 841181e into pytorch:main Apr 15, 2026
158 of 161 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants