KEMBAR78
Added support for custom pre-grad passes by Chillee · Pull Request #113823 · pytorch/pytorch · GitHub
Skip to content

Conversation

@Chillee
Copy link
Collaborator

@Chillee Chillee commented Nov 16, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 16, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit d13d03c with merge base 27e31ab (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.

Chillee added a commit that referenced this pull request Nov 16, 2023
ghstack-source-id: 91af99b
Pull Request resolved: #113823
@github-actions github-actions bot requested a review from ezyang November 16, 2023 00:36
if len(matmuls) == 1:
continue
matmuls = sorted(matmuls, key=lambda x: order[x])
with graph.inserting_before(matmuls[0]):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the major challenge of supporting custom passes is during the nodes fusion/replacement, we have to ensure the metadata is updated, since the other FX pass may use these metadata. We should have a well defined contract for this.

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

[ghstack-poisoned]
Chillee added a commit that referenced this pull request Nov 17, 2023
ghstack-source-id: 869dc55
Pull Request resolved: #113823
@ezyang ezyang removed their request for review November 17, 2023 04:34
Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

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

Seems reasonable. I wonder if there's anything else we should consider along here, such as the FakeTensor meta updater, or Pattern Matcher, or docs etc.

@Chillee
Copy link
Collaborator Author

Chillee commented Dec 1, 2023

@pytorchbot merge -i

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

Merge started

Your change will be merged while ignoring the following 2 checks: inductor / linux-jammy-cpu-py3.8-gcc11-inductor / test (inductor_torchbench_cpu_accuracy, 1, 1, linux.4xlarge), inductor / linux-jammy-cpu-py3.8-gcc11-inductor / test (inductor_torchbench_dynamic_cpu_accuracy, 1, 1, linux.12xlarge)

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

@facebook-github-bot facebook-github-bot deleted the gh/chillee/244/head branch December 4, 2023 15:29
dmenig pushed a commit to dmenig/pytorch that referenced this pull request Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants