Prevent _safe_softmax decomposition in traceand rewire replaceSafeSoftmaxWithSoftmax#19619
Conversation
…tmaxWithSoftmax Summary: Prevent _safe_softmax from being decomposed in trace(). Re-add `ReplaceSafeSoftmaxWithSoftmax` pass in `apply_torch_ops_passes()`, before `to_edge()`. ISS performance (FLLM_v2_wrist on Artemis_HiFi4_UT_v3): - Before: 421,662,921 cycles (843ms @ 500MHz) - After: 214,034,116 cycles (428ms @ 500MHz) — 1.97x speedup Differential Revision: D105367634
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19619
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ You can merge normally! (15 Unrelated Failures)As of commit d6295b6 with merge base 7355d7b ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but were 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. |
|
@ethansfng has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105367634. |
This PR needs a
|
Summary:
Prevent _safe_softmax from being decomposed in trace(). Re-add
ReplaceSafeSoftmaxWithSoftmaxpass inapply_torch_ops_passes(), beforeto_edge().ISS performance (FLLM_v2_wrist on Artemis_HiFi4_UT_v3):
Differential Revision: D105367634