Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyTorch] FP8 MHA with RoPE and Miscellaneous Improvements (#1100)
* fp8 mha with rope Signed-off-by: Xin Yao <xiny@nvidia.com> * avoid index select in cast ops Signed-off-by: Xin Yao <xiny@nvidia.com> * avoid index select in fused_attn_fwd Signed-off-by: Xin Yao <xiny@nvidia.com> * rename is_first_module_in_mha to fp8_output Signed-off-by: Xin Yao <xiny@nvidia.com> * resolve comments Signed-off-by: Xin Yao <xiny@nvidia.com> * resolve comments Signed-off-by: Xin Yao <xiny@nvidia.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move transpose to backward for fp8 input Signed-off-by: Xin Yao <xiny@nvidia.com> * fix ut Signed-off-by: Xin Yao <xiny@nvidia.com> * resolve comments Signed-off-by: Xin Yao <xiny@nvidia.com> * update argument list for CP Signed-off-by: Xin Yao <xiny@nvidia.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix for FA3 Signed-off-by: Xin Yao <xiny@nvidia.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove unnecessary copy of scale_inv Signed-off-by: Xin Yao <xiny@nvidia.com> * skip fp8 dpa/mha tests when fa3 is not available Signed-off-by: Xin Yao <xiny@nvidia.com> * fix a merge bug Signed-off-by: Xin Yao <xiny@nvidia.com> --------- Signed-off-by: Xin Yao <xiny@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information