Uh oh!
There was an error while loading. Please reload this page.
[JAX] Support SP + RoPE + GeLU - #602
Conversation
mingxu1067
commented
Jan 15, 2024
- Support Sqeuence Parallelism
- Support Rotary Position Embedding (RoPE).
- Port GeLU relevant custom calls.
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
…f with nn.scan. Signed-off-by: Ming Huang <mingh@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Ming Huang <mingh@nvidia.com>
Signed-off-by: Ming Huang <mingh@nvidia.com>
zlsh80826
commented
Jan 17, 2024
LGTM |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nouiz
left a comment
There was a problem hiding this comment.
Can you update one of the example to show SP?
A simple modification, like just a parameter to the example to use or not SP would be great.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| jnp.asarray(ref_s_grad, np.float32), | ||
| dtype=FP8Helper.BWD_DTYPE) | ||
| @pytest.mark.skipif(not is_fp8_supported, reason=reason) |
There was a problem hiding this comment.
Not implemented yet, but tests of vmap is orthogonal to this PR. We can schedule time to submit another PR to do so.
Signed-off-by: Ming Huang <mingh@nvidia.com>
mingxu1067
commented
Jan 22, 2024
Done, refer to examples/jax/encoder/test_model_parallel_encoder.py |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
denera
commented
Jan 25, 2024
/te-ci jax |
Signed-off-by: Ming Huang <mingh@nvidia.com>
7b6575c to
4222c64Comparemingxu1067
commented
Jan 30, 2024
/te-ci |
Signed-off-by: Ming-Xu Huang <mingh@nvidia.com>
Signed-off-by: Ming-Xu Huang <mingh@nvidia.com>
Signed-off-by: Ming-Xu Huang <mingh@nvidia.com>
mingxu1067
commented
Jan 31, 2024
/te-ci jax |
denera
commented
Feb 2, 2024
@ashors1 verified partial convergence and Abhinav Goal verified performance. Merging PR -- thank you for the hard work @mingxu1067! |