FlashAttention integration in ML frameworks
mainFlashAttention is integrated into several major machine learning frameworks and libraries, allowing for optimized Transformer operations without manual implementation. Key integrations include:
- PyTorch: Integrated into the core
nn.Transformermodule. - Huggingface Transformers: Supported within the library.
- Microsoft DeepSpeed: Integrated into the DeepSpeed inference engine.
- NVIDIA Megatron-LM: Used for training large transformer language models at scale.
- MosaicML Composer: Used for efficient neural network training.
- EleutherAI GPT-NeoX: A research library for large language models.
- PaddlePaddle: Accessible via the
paddle.nn.functional.flash_attentionAPI.