Skip to content

Phonon: add a --benchmark mode to the runner (#25595) - #25595

Merged
psiddh merged 1 commit into
pytorch:mainfrom
psiddh:export-D132314498
Nov 23, 2026
Merged

psiddh merged 1 commit into
pytorch:mainfrom
psiddh:export-D132314498

Conversation

@psiddh

@psiddh psiddh commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

The Phonon C++ runner prints one end-to-end timing line, so the performance numbers we published came from a private timing-instrumented copy of the runner. This adds --benchmark to phonon_runner: it synthesizes the text 4 times (the same methodology as those numbers) and prints the real-time factor, the time to first audio, the audio duration and the median milliseconds per flow_lm step and per mimi_decode call, for the cold first run and the median of the three warm runs, so anyone can reproduce the numbers with one command. The runner records the per-frame method times in Synthesis; without the flag the output and the audio are unchanged. The README shows the command.

This diff was written with the help of Claude Code (Claude Opus 5.5).

Differential Revision: D132314498

Copilot AI balanced review requested due to automatic review settings November 23, 2026 09:07
@pytorch-bot

pytorch-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Pending

As of commit 439ebf2 with merge base fce3a64 (image):

NEW FAILURE - The following job has failed:

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 Nov 23, 2026
@meta-codesync

meta-codesync Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@psiddh has exported this pull request. If you are a Meta employee, you can view the originating Diff in D132314498.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Summary:

The Phonon C++ runner prints one end-to-end timing line, so the performance numbers we published came from a private timing-instrumented copy of the runner. This adds `--benchmark` to `phonon_runner`: it synthesizes the text 4 times (the same methodology as those numbers) and prints the real-time factor, the time to first audio, the audio duration and the median milliseconds per `flow_lm` step and per `mimi_decode` call, for the cold first run and the median of the three warm runs, so anyone can reproduce the numbers with one command. The runner records the per-frame method times in `Synthesis`; without the flag the output and the audio are unchanged. The README shows the command.

This diff was written with the help of Claude Code (Claude Opus 5.5).

Differential Revision: D132314498
@meta-codesync meta-codesync Bot changed the title Phonon: add a --benchmark mode to the runner Phonon: add a --benchmark mode to the runner (#25595) Nov 23, 2026
@JakeStevens JakeStevens added the release notes: multimodal Changes and new features for multimodal support label Nov 23, 2026
@psiddh
psiddh merged commit f632846 into pytorch:main Nov 23, 2026
278 of 279 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. meta-exported release notes: multimodal Changes and new features for multimodal support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants