[SW-185803] Enable FusedSDPA fp8 in Llama FT#291
Merged
Conversation
- Update attention module and usages - Add --flash_attention_fp8 flag
kalyanjk
pushed a commit
to kalyanjk/optimum-habana-fork
that referenced
this pull request
Jul 15, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag
oabramovich
pushed a commit
that referenced
this pull request
Jul 15, 2024
pbielak
added a commit
that referenced
this pull request
Jul 17, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag
|
Unmatched PR |
pbielak
added a commit
that referenced
this pull request
Jul 30, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Add flag to README.md - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE
pbielak
added a commit
that referenced
this pull request
Jul 30, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE
pbielak
added a commit
that referenced
this pull request
Jul 30, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE
pbielak
added a commit
that referenced
this pull request
Jul 31, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls
pbielak
added a commit
that referenced
this pull request
Jul 31, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls
vivekgoe
pushed a commit
that referenced
this pull request
Aug 1, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls
astachowiczhabana
pushed a commit
that referenced
this pull request
Aug 6, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls Change-Id: Ica468bb23931a78e2a23f6cb9bc60f87dd442007
astachowiczhabana
pushed a commit
that referenced
this pull request
Aug 6, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls Change-Id: Ica468bb23931a78e2a23f6cb9bc60f87dd442007
astachowiczhabana
pushed a commit
that referenced
this pull request
Aug 7, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls Change-Id: Ica468bb23931a78e2a23f6cb9bc60f87dd442007
pbielak
pushed a commit
that referenced
this pull request
Oct 1, 2024
astachowiczhabana
pushed a commit
that referenced
this pull request
Oct 9, 2024
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls Change-Id: Ica468bb23931a78e2a23f6cb9bc60f87dd442007
xinyu-intel
pushed a commit
that referenced
this pull request
Mar 4, 2025
- Update attention module and usages - Add --flash_attention_fp8 flag - Fix failure in distributed text-generation - Add assert for Gaudi 3 - Remove unnecessary repeat_kv and reshape - Rename FusedAttention to FusedAttentionTE - Move flash_attention_fp8 checks - Fix fused_scaled_dot_product_attention calls Change-Id: Ica468bb23931a78e2a23f6cb9bc60f87dd442007
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables the usage of Fused Scaled Dot Product Attention in the FP8 version of the LLama model. Tested on LLama finetuning using LoRA. Set the
--flash_attention_fp8flag to use FusedSDPA.