-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JAX] Support SP + RoPE + GeLU (#602)
* Adding support of sequence parallelism Signed-off-by: Ming Huang <mingh@nvidia.com> * Adding RoPE Signed-off-by: Ming Huang <mingh@nvidia.com> * Fix wrong batch_logical_axes Signed-off-by: Ming Huang <mingh@nvidia.com> * Rnaming FSDP outer env var Signed-off-by: Ming Huang <mingh@nvidia.com> * Poring RoPE to Praxis layers. Signed-off-by: Ming Huang <mingh@nvidia.com> * Porting GeLU + [FP8 Cast]. Signed-off-by: Ming Huang <mingh@nvidia.com> * WAR to make XLA successfully match FP8 GEMM on FFN1 with GeLU. Signed-off-by: Ming Huang <mingh@nvidia.com> * Allowing arbitrary dimension of NVShape for the workspace allocation Signed-off-by: Ming Huang <mingh@nvidia.com> * Adding checkpoint_name to fused functions of mlp.py to get better perf with nn.scan. Signed-off-by: Ming Huang <mingh@nvidia.com> * Modify with review feedback. Signed-off-by: Ming Huang <mingh@nvidia.com> * Fix bugs Signed-off-by: Ming Huang <mingh@nvidia.com> * Fix typo. Signed-off-by: Ming Huang <mingh@nvidia.com> * Fixed for lint Signed-off-by: Ming Huang <mingh@nvidia.com> * Follow review feedback to modify code. Signed-off-by: Ming Huang <mingh@nvidia.com> * Fix typo. Signed-off-by: Ming Huang <mingh@nvidia.com> * Port SP to Praxis Signed-off-by: Ming-Xu Huang <mingh@nvidia.com> * Fix an issue when enabling both GQA and RoPE. Signed-off-by: Ming-Xu Huang <mingh@nvidia.com> * Update docs Signed-off-by: Ming-Xu Huang <mingh@nvidia.com> --------- Signed-off-by: Ming Huang <mingh@nvidia.com> Signed-off-by: Ming-Xu Huang <mingh@nvidia.com>
- Loading branch information
1 parent
29b0c9c
commit ce163f9
Showing
17 changed files
with
2,133 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.