Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update llm_optims docs for sdpa_kernel #35481

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

jla524
Copy link
Contributor

@jla524 jla524 commented Jan 2, 2025

What does this PR do?

Addresses #34411 (issue)

Replace torch.backends.cuda.sdp_kernel with torch.nn.attention.sdpa_kernel in the code example.

Who can review?

@stevhliu

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

Thanks!

@stevhliu stevhliu merged commit 44a26c8 into huggingface:main Jan 6, 2025
8 checks passed
@jla524 jla524 deleted the docs/llm_optims_use_sdpa_kernel branch January 7, 2025 02:07
AlanPonnachan pushed a commit to AlanPonnachan/transformers that referenced this pull request Jan 7, 2025
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.

2 participants