Skip to content

Conversation

cli99
Copy link
Contributor

@cli99 cli99 commented Dec 13, 2023

This PR adds the TransformerEngine fp8 attention implemention. https://github.com/NVIDIA/TransformerEngine/blob/main/transformer_engine/pytorch/attention.py.

To enable it, set the below fields in the yaml config.

precision: amp_fp8
model:
  attn_config:
    attn_type: te_multihead_attention
    kv_n_heads: 8
  fc_type: te

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