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

Disable default sdpa in Albert (#22) #1517

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

astachowiczhabana
Copy link
Contributor

Transformers v4.45 introduced sdpa as the default implementation in Albet. This caused performance drop.
Adding Albert to the list of models which don't yet have sdpa implementation in Gaudi and use thus eager attention.

@astachowiczhabana
Copy link
Contributor Author

Hi @libinta this commit is also required with next OH release

@jiminha jiminha changed the title [SW-209062] Disable default sdpa in Albert (#22) Disable default sdpa in Albert (#22) Nov 25, 2024
@jiminha jiminha self-requested a review November 25, 2024 19:23
@jiminha jiminha added the run-test Run CI for PRs from external contributors label Nov 25, 2024
Copy link

The code quality check failed, please run make style.

@regisss
Copy link
Collaborator

regisss commented Nov 25, 2024

@astachowiczhabana Please rebase your branch on main and run make style to make the code quality check pass

@HuggingFaceDocBuilderDev

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.

Transformers v4.45 introduced sdpa as the default implementation
in Albet. This caused performance drop.
Adding Albert to the list of models which don't yet have sdpa
implementation in Gaudi and use thus eager attention.
@astachowiczhabana
Copy link
Contributor Author

change rebased

@regisss regisss merged commit 6904a98 into huggingface:main Nov 26, 2024
3 of 4 checks passed
MohitIntel pushed a commit that referenced this pull request Nov 26, 2024
Liangyx2 pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-test Run CI for PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants