KEMBAR78
[AOTInductor] Allow using ProxyExecutor for ATen fallbacks by SherlockNoMad · Pull Request #112976 · pytorch/pytorch · GitHub
Skip to content

Conversation

@SherlockNoMad
Copy link
Contributor

@SherlockNoMad SherlockNoMad commented Nov 5, 2023

Summary: Use ProxyExecutor for aten._scaled_dot_product_efficient_attention in ABI-mode

Test Plan: OSS CI

Differential Revision: D51005807

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 5, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (3 Unrelated Failures)

As of commit c3a6133 with merge base 24b61a4 (image):

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.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51005807

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2023

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

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

Copy link
Contributor

@chenyang78 chenyang78 left a comment

Choose a reason for hiding this comment

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

Fix the failing tests?

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51005807

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51005807

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51005807

…12976)

Summary:

Use ProxyExecutor for aten._scaled_dot_product_efficient_attention in ABI-mode

Test Plan:
OSS CI
buck2 run mode/dev-nosan deeplearning/aot_inductor/test:test_custom_ops

Reviewed By: chenyang78, amitaga

Differential Revision: D51005807
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51005807

else f"at::_ops::{kernel.__name__.replace('.', '_')}::call"
)
schema = kernel._schema
if config.is_fbcode() and kernel in fbcode_use_proxy_executor:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to diverge behavior between OSS and fbcode here? It would seem much better to do the same thing in both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

proxy executor doesn't work in OSS yet.
In fbcode, we use thrift for serialization/deserialization. However, in OSS, we don't have a useable serialization/deserialization solution.

export uses json.dumps for serialization and json.loads for deserialization back to python. However, this format is not very friendly for deserialization back to C++.

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 8, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
…12976)

Summary: Use ProxyExecutor for aten._scaled_dot_product_efficient_attention in ABI-mode

Test Plan: OSS CI

Differential Revision: D51005807

Pull Request resolved: pytorch#112976
Approved by: https://github.com/chenyang78, https://github.com/jansel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants