Skip to content

Allow f16/bf16 in custom SDPA - #237

Open
GregoryComer wants to merge 1 commit into
huggingface:mainfrom
GregoryComer:sdpa-half
Open

Allow f16/bf16 in custom SDPA#237
GregoryComer wants to merge 1 commit into
huggingface:mainfrom
GregoryComer:sdpa-half

Conversation

@GregoryComer

Copy link
Copy Markdown

The current module swapped SDPA always runs SDPA in f32, up-converting activations if necessary. We now have native support for half-precision SDPA in ET, so relax the assertions and remove the casts.

@GregoryComer
GregoryComer marked this pull request as ready for review July 9, 2026 00:02
@regisss

regisss commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

@GregoryComer LGTM! Can you just rebase your branch on main as the CI is now green there to make sure that all tests pass please?

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@regisss

regisss commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

@GregoryComer The three tests that failed are related to custom SDPA it seems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants