Skip to content

[RELEASE ONLY CHANGES] Finalize 1.4 release dependencies and version - #21563

Open
JacobSzwejbka wants to merge 5 commits into
release/1.4from
release-only/1.4-torchao-0.18.0
Open

[RELEASE ONLY CHANGES] Finalize 1.4 release dependencies and version#21563
JacobSzwejbka wants to merge 5 commits into
release/1.4from
release-only/1.4-torchao-0.18.0

Conversation

@JacobSzwejbka

@JacobSzwejbka JacobSzwejbka commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Release-only changes. Do not merge to main.

Finalizes the ExecuTorch 1.4 release metadata and released dependency pins:

  • Sets the package version to 1.4.0.
  • Updates the torchao submodule and wheel constraints to v0.18.0.
  • Updates the tokenizer submodule and wheel constraint to v1.4.0.
  • Updates torchcodec consumers to stable 0.15.0 CPU wheels.
  • Uses stable PyTorch CPU wheels for QNN wheel validation.
  • Updates SwiftPM and Raspberry Pi examples for the 1.4 release and 1.5 nightlies.
  • Carries the three Arm Llama xfails from main PR Bump torchao to 03ca489dc and nightly wheel to dev20260729 #21476 for torchao preserved mutable KV-cache behavior.
  • Installs YOLO26 requirements before its portable periodic test, carrying the approved fix from Install yolo26 requirements before portable export in CI #20526.
  • Keeps the shared DS-CNN input portable-safe while forcing and propagating channels-last input at the Cortex-M compiler boundary.

Test plan:

  • git diff --check
  • Parsed modified Python files with py_compile
  • bash -n on all modified shell scripts
  • Ran full and minimal setup.py --name metadata smoke tests
  • Verified torchao and tokenizer gitlinks exactly match tags v0.18.0 and v1.4.0
  • Verified torchcodec 0.15.0 and torch 2.13.0 wheels exist on the stable CPU index
  • Verified the xfail patch matches main PR Bump torchao to 03ca489dc and nightly wheel to dev20260729 #21476
  • Verified singleton-channel DS-CNN input conversion changes NCHW strides (490, 490, 10, 1) to channels-last strides (490, 1, 10, 1)
  • Full Cortex-M FVP and portable executor validation delegated to CI

Authored with Codex.

@pytorch-bot

pytorch-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ 272 Pending, 1 Unrelated Failure

As of commit 3592c81 with merge base cd380e7 (image):

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

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 Aug 4, 2026
@JacobSzwejbka
JacobSzwejbka force-pushed the release-only/1.4-torchao-0.18.0 branch from 3474ee4 to fd9c0b2 Compare August 4, 2026 02:34
@JacobSzwejbka
JacobSzwejbka force-pushed the release-only/1.4-torchao-0.18.0 branch from fd9c0b2 to 8e663c7 Compare August 4, 2026 02:49
@JacobSzwejbka JacobSzwejbka changed the title [RELEASE ONLY CHANGES] Update torchao to v0.18.0 [RELEASE ONLY CHANGES] Finalize 1.4 release dependencies and version Aug 4, 2026
rascani added 2 commits August 4, 2026 08:43
…V-cache

The torchao bump pulls in pytorch/ao#4466, which preserves mutable buffer
inputs during pt2e prepare. The static KV cache is now a genuine fp32 mutable
buffer feeding index_put instead of a folded quantized constant. An INT-only
TOSA delegate boundary must be quantized, so the Arm backend cannot delegate
index_put on the fp32 buffer; the node is dropped from the partition and the
cache read-modify-write forms a dependency cycle. This is the same underlying
gap as the already-xfailed static-cache tests (MLETORCH-1971), and a proper
Arm-side fix is being investigated separately. Mark the test xfail so the
torchao pin bump can land.

This change was authored with Claude Code.
pytorch/ao#4466 preserves mutable buffer inputs during pt2e prepare, so the
llama KV cache stays an fp32 mutable buffer instead of being folded into a
quantized constant. The Arm INT backend has no handling for that yet, and it
breaks on both sides of the cache: test_llama_tosa_INT hits the same partition
dependency cycle as the already-xfailed static-cache tests when writing the
cache via index_put, and test_llama_vgf_quant fails in attention because the
cache is read as float32 while the query is int8, which MATMUL rejects.

Both tests only run in the trunk stories110M jobs, which pass --llama_inputs
and --use_kv_cache. Mark them xfail so the torchao pin bump can land for the
1.4 release; the Arm-side fix is being investigated separately under
MLETORCH-1971.

This change was authored with Claude Code.
digantdesai and others added 2 commits August 4, 2026 08:58
test_model.sh exports yolo26 via examples.portable.scripts.export, but
yolo26's model imports ultralytics, which was never installed -- the CI job
failed with ModuleNotFoundError: No module named 'ultralytics'.

Install examples/models/yolo26/requirements.txt before the export, matching the
per-model dep handling already used for llava/edsr/mb. torch/torchvision are
already installed and satisfy ultralytics, so --upgrade-strategy only-if-needed
leaves them untouched and no pytorch extra-index-url is needed.

Authored with Claude assistance.
Keep the shared DS-CNN example input contiguous for portable execution, while forcing 4D Cortex-M inputs to channels-last and returning the converted tuple for BundleIO. This handles singleton-channel tensors whose contiguity predicate is ambiguous.\n\nAuthored with Codex assistance.
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.

4 participants