Uh oh!
There was an error while loading. Please reload this page.
[PyTorch] Normalization ops - #1033
Conversation
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
for more information, see https://pre-commit.ci
timmoon10
commented
Jul 22, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
timmoon10
commented
Jul 22, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
for more information, see https://pre-commit.ci
timmoon10
commented
Jul 30, 2024
/te-ci pytorch |
timmoon10
commented
Jul 30, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Debugging ONNX export tests. Signed-off-by: Tim Moon <tmoon@nvidia.com>
for more information, see https://pre-commit.ci
timmoon10
commented
Aug 12, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
for more information, see https://pre-commit.ci
timmoon10
commented
Sep 19, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
/te-ci pytorch Edit: |
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
timmoon10
commented
Oct 1, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
timmoon10
commented
Oct 10, 2024
/te-ci pytorch |
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
for more information, see https://pre-commit.ci
timmoon10
commented
Oct 18, 2024
/te-ci pytorch |
timmoon10
commented
Nov 5, 2024
/te-ci pytorch |
timmoon10
commented
Nov 5, 2024
binxuan
commented
Dec 19, 2024
Hi one question regarding this new layernorm implementation, my understanding is that this new implementation can support multi-dimension layernorm weight while previous implemenation can only support one-dimension weight. So I have N different 1-D tensors and previously I have to initiate N different layernorm and apply them separately. But with this new implementation, then we can apply one 2-dimensional layernorm to N stacked different tensors with shape (N, dim)? is my understanding correct? |
@binxuan This implementation matches x_2d=x.reshape(-1, prod(normalized_shape))
y_2d=layer_norm_2d(x_2d, weight.reshape(-1), bias.reshape(-1))
y=y_2d.reshape(x.size()) |
Description
This PR extends the operation-based API (see #707) with LayerNorm, RMSNorm, and FP8 cast operations.
Compare with the existing module-based API:
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: