Skip to content

Introduce CMake workflow - #15821

Merged
larryliu0820 merged 1 commit into
mainfrom
gh/larryliu0820/81/orig
Nov 14, 2025
Merged

larryliu0820 merged 1 commit into
mainfrom
gh/larryliu0820/81/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

CMake workflow combines configure and build into 1 command. Instead of
doing:

```
cmake --preset llm \
      -DEXECUTORCH_BUILD_CUDA=ON \
      -DCMAKE_INSTALL_PREFIX=cmake-out \
      -DCMAKE_BUILD_TYPE=Release \
      -Bcmake-out -S.
cmake --build cmake-out -j$(nproc) --target install --config Release
```

We can simply do `cmake --workflow llm-release-cuda`. This largely
reduces the burden of running these cmake commands.

Next step I'm going to create workflow for the popular runners (llama,
whisper, voxtral etc) and further simplify the build command

ghstack-source-id: 21411ca
Pull Request resolved: #15804
@pytorch-bot

pytorch-bot Bot commented Nov 13, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ 19 Pending, 4 Unrelated Failures

As of commit 2691d6d with merge base 6de1f4e (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was 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.

@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 13, 2025
@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.

@larryliu0820
larryliu0820 merged commit 8ab589a into main Nov 14, 2025
@larryliu0820
larryliu0820 deleted the gh/larryliu0820/81/orig branch November 14, 2025 00:54
@GregoryComer

Copy link
Copy Markdown
Contributor

Picking to resolve CI failures on the release branch, since this seems to have resolved the moshi failures.

@GregoryComer

Copy link
Copy Markdown
Contributor

@pytorchbot cherry-pick --onto release/1.0 -c critical

@pytorchbot

Copy link
Copy Markdown
Collaborator Author

Cherry picking #15821

Command git -C /home/runner/work/executorch/executorch cherry-pick -x -X theirs 8ab589a692e3fdd3995b8ee59cb399355f479b2e returned non-zero exit code 1

Auto-merging .ci/scripts/test_llama_lora.sh
CONFLICT (modify/delete): .ci/scripts/test_model_e2e.sh deleted in HEAD and modified in 8ab589a692 (Introduce CMake workflow (#15821)).  Version 8ab589a692 (Introduce CMake workflow (#15821)) of .ci/scripts/test_model_e2e.sh left in tree.
Auto-merging .ci/scripts/test_phi_3_mini.sh
Auto-merging .github/workflows/pull.yml
CONFLICT (modify/delete): examples/models/gemma3/README.md deleted in HEAD and modified in 8ab589a692 (Introduce CMake workflow (#15821)).  Version 8ab589a692 (Introduce CMake workflow (#15821)) of examples/models/gemma3/README.md left in tree.
Auto-merging examples/models/llama/README.md
Auto-merging examples/models/moshi/mimi/install_requirements.sh
Auto-merging examples/models/phi-3-mini/README.md
Auto-merging examples/models/voxtral/README.md
CONFLICT (modify/delete): examples/models/whisper/README.md deleted in HEAD and modified in 8ab589a692 (Introduce CMake workflow (#15821)).  Version 8ab589a692 (Introduce CMake workflow (#15821)) of examples/models/whisper/README.md left in tree.
error: could not apply 8ab589a692... Introduce CMake workflow (#15821)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

GregoryComer added a commit that referenced this pull request Nov 19, 2025
### Summary
The torchcodec nightly version we are pinning is out of retention. It
was updated on main as part of #15180. This PR picks just that change to
the requirements file to avoid picking up all of the other large changes
in the PR. The follow-up change to the ffmpeg install in #15821 is also
picked here, since it's needed for the previous change to work.
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