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

Enable attention selection for wav2vec2 #1757

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ugolowic
Copy link
Contributor

@ugolowic ugolowic commented Feb 7, 2025

User can select among the three attention implementations (Gaudi-specific fused sdpa, "plain" sdpa, or eager), using script arguments.
In the audio-classification and speech-recognition examples:

  • for eager, pass --attn_implementation eager
  • for "plain" sdpa, pass --attn_implementation sdpa --sdp_on_bf16
  • for fused sdpa, pass --attn_implementation sdpa --use_flash_attention

User can select among the three attention implementations
(Gaudi-specific fused sdpa, "plain" sdpa, or eager), using
script arguments.
In the audio-classification and speech-recognition examples:
* for eager, pass --attn_implementation eager
* for "plain" sdpa, pass --attn_implementation sdpa --sdp_on_bf16
* for fused sdpa, pass --attn_implementation sdpa --use_flash_attention

Signed-off-by: Urszula Golowicz <[email protected]>
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.

1 participant