Skip to content

Support bf16-out quantized embeddings on CPU#20707

Open
GregoryComer wants to merge 1 commit into
pytorch:mainfrom
GregoryComer:bf16-emb-cpu
Open

Support bf16-out quantized embeddings on CPU#20707
GregoryComer wants to merge 1 commit into
pytorch:mainfrom
GregoryComer:bf16-emb-cpu

Conversation

@GregoryComer

@GregoryComer GregoryComer commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Enable bf16 in embedding_byte and sub-byte ops. This is a relatively simple change as templating of the actual kernels/impls make it pretty much work out of box.

Test Plan

I've added test coverage for bf16 2, 4, and 8-bit embeddings.

@pytorch-bot

pytorch-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit e1674d5 with merge base db5f1ba (image):

NEW FAILURE - The following job has failed:

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 Jul 3, 2026
@GregoryComer GregoryComer changed the title Support bf16 embeddings Support bf16 embeddings on CPU Jul 3, 2026
@GregoryComer GregoryComer added release notes: quantization Changes to quantization release notes: ops & kernels Changes to the opset and any new / changed kernel implementations and removed release notes: quantization Changes to quantization labels Jul 3, 2026
@GregoryComer GregoryComer changed the title Support bf16 embeddings on CPU Support bf16-out quantized embeddings on CPU Jul 3, 2026
@GregoryComer GregoryComer marked this pull request as ready for review July 3, 2026 08:30
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. release notes: ops & kernels Changes to the opset and any new / changed kernel implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant