Skip to content

[Inductor] add a new config fallback_embedding_bag_byte_unpack#163803

Closed
hl475 wants to merge 1 commit intopytorch:mainfrom
hl475:export-D82988783
Closed

[Inductor] add a new config fallback_embedding_bag_byte_unpack#163803
hl475 wants to merge 1 commit intopytorch:mainfrom
hl475:export-D82988783

Conversation

@hl475
Copy link
Contributor

@hl475 hl475 commented Sep 24, 2025

Differential Revision: D82988783

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 24, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 5be8a4b with merge base c4312b4 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

@hl475
Copy link
Contributor Author

hl475 commented Sep 24, 2025

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Sep 24, 2025
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 24, 2025
…ch#163803)

Summary: Pull Request resolved: pytorch#163803

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
…ch#163803)

Summary:

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
…ch#163803)

Summary:

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

Reviewed By: henryoier

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
…ch#163803)

Summary:

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

Reviewed By: henryoier

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 25, 2025
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
…ch#163803)

Summary:

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

Reviewed By: henryoier

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

…ch#163803)

Summary:

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

Reviewed By: henryoier

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

@hl475 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82988783.

"""decomps can change based on config"""
if config.fallback_random:
return decompositions
if config.fallback_embedding_bag_byte_unpack is True:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: if config.fallback_embedding_bag_byte_unpack:

Comment on lines +890 to +893
for k in decompositions.keys():
if k == torch.ops.quantized.embedding_bag_byte_unpack.default:
del decompositions[k]
break
Copy link
Contributor

Choose a reason for hiding this comment

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

decompositions.pop(torch.ops.quantized.embedding_bag_byte_unpack.default, None)

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@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

@hl475
Copy link
Contributor Author

hl475 commented Sep 25, 2025

sorry @desertfire , just saw the comments. will submit another diff/PR to address your comments!

hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
Summary: address comments from pytorch#163803

Differential Revision: D83291637
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 25, 2025
Summary:

address comments from pytorch#163803

Differential Revision: D83291637
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 26, 2025
Summary:

address comments from pytorch#163803

Differential Revision: D83291637
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 26, 2025
Summary:

address comments from pytorch#163803

Differential Revision: D83291637
hl475 added a commit to hl475/pytorch that referenced this pull request Sep 26, 2025
Summary:

address comments from pytorch#163803

Differential Revision: D83291637
pytorchmergebot pushed a commit that referenced this pull request Sep 26, 2025
Summary: address comments from #163803

Differential Revision: D83291637

Pull Request resolved: #163901
Approved by: https://github.com/desertfire
jainapurva pushed a commit that referenced this pull request Sep 29, 2025
Differential Revision: D82988783

introduce an inductor config fallback_embedding_bag_byte_unpack so we can have options to not let inductor decompose the op

Pull Request resolved: #163803
Approved by: https://github.com/henryoier
jainapurva pushed a commit that referenced this pull request Sep 29, 2025
Summary: address comments from #163803

Differential Revision: D83291637

Pull Request resolved: #163901
Approved by: https://github.com/desertfire
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