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

flash attention #1

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

flash attention #1

wants to merge 1 commit into from

Conversation

Srini-98
Copy link

@Srini-98 Srini-98 commented Aug 26, 2023

The llama_patch.py helps to use flash attention when finetuning. This script has to be invoked in the training script to convert the attention mechanism. Function 'upcast_layer_for_flash_attention' is needed to convert the weights if the finetuning is done using Qlora. This helps cut finetuning time by 1.5x

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