Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 814
Adding documents to TE/JAX#87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d3bed79fcc553027b08429b7c98ab8c5ad0bbbe7c070b2fadce8115c9c9524c198baac601d56865e24f8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,3 +9,4 @@ Framework-specific API | ||
| .. toctree:: | ||
| pytorch | ||
| jax | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| .. | ||
| Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| See LICENSE for license information. | ||
| Jax | ||
| ======= | ||
| .. autoapiclass:: transformer_engine.jax.MajorShardingType | ||
| .. autoapiclass:: transformer_engine.jax.ShardingType | ||
| .. autoapiclass:: transformer_engine.jax.TransformerLayerType | ||
| .. autoapiclass:: transformer_engine.jax.ShardingResource(dp_resource=None, tp_resource=None) | ||
| .. autoapiclass:: transformer_engine.jax.LayerNorm(epsilon=1e-6, layernorm_type='layernorm', **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.DenseGeneral(features, layernorm_type='layernorm', use_bias=False, **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.LayerNormDenseGeneral(features, layernorm_type='layernorm', epsilon=1e-6, use_bias=False, **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.LayerNormMLP(intermediate_dim=2048, layernorm_type='layernorm', epsilon=1e-6, use_bias=False, **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.RelativePositionBiases(num_buckets, max_distance, num_heads, **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.MultiHeadAttention(head_dim, num_heads, **kwargs) | ||
| :members: __call__ | ||
| .. autoapiclass:: transformer_engine.jax.TransformerLayer(hidden_size=512, mlp_hidden_size=2048, num_attention_heads=8, **kwargs) | ||
| :members: __call__ | ||
Comment on lines
+20
to
+36
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these modules are showing up in the
| ||
| .. autoapifunction:: transformer_engine.jax.extend_logical_axis_rules | ||
| .. autoapifunction:: transformer_engine.jax.fp8_autocast | ||
| .. autoapifunction:: transformer_engine.jax.update_collections | ||
| .. autoapifunction:: transformer_engine.jax.update_fp8_metas | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main README should also mention JAX.
Grep for pytorch in that document and add JAX at those places and add a JAX example too as there is a PyTorch example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think README.md need more refactor to show all FWs supported by TE. Diretort adding JAX to all Pytorch appearance might mess up reading. We can submit a split PR to refactor README.md.