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.
In this branch, we will track the evolution of FA3. The current state is:
From the flash-attention repo:
Installation
Refer to the official FA repo.
This will install the package
flashattn-hopper
, so you can still haveflash_attn
for the LayerNorm and RoPE embeddings.Run experiments
In this branch, I have added the configuration to choose between FA2 & FA3 to more easily compare the performance of both (
model.model_config.use_fa3
). You can use the configurationexamples/config_llama3_fa3.yaml
that will build a Llama3-8B model but with fewer decoder layers to fit the 8192 sequence length in 1 GPU.If we use GH200 nodes, having more VRAM will allow us to use
num_hidden_layers = 11
. In systems with H100, usenum_hidden_layers = 8
. Don't forget to edit thedataset_folder
andtokenizer_name_or_path
fields if necessary.Performance
I will keep updating this table as new features are incorporated, as they mentioned, they are currently in a beta release. The MFU reported is the one computed by nanotron.