Skip to content

Conversation

@a-sidorova
Copy link
Contributor

The second part of #45

@a-sidorova a-sidorova mentioned this pull request Dec 11, 2025
4 tasks
@a-sidorova a-sidorova force-pushed the feature/layer_norm/node branch 3 times, most recently from d7b8357 to 9979c82 Compare December 12, 2025 09:23
@a-sidorova a-sidorova linked an issue Dec 16, 2025 that may be closed by this pull request
4 tasks
@a-sidorova a-sidorova force-pushed the feature/layer_norm/node branch 2 times, most recently from 77f22f2 to e92b893 Compare December 19, 2025 07:03
Signed-off-by: Alexandra Sidorova <[email protected]>
@a-sidorova a-sidorova force-pushed the feature/layer_norm/node branch from e92b893 to 8f2f63e Compare December 19, 2025 07:09
@a-sidorova a-sidorova marked this pull request as ready for review December 19, 2025 07:10
@a-sidorova a-sidorova requested review from IanWood1 and sjain-stanford and removed request for IanWood1 December 19, 2025 07:11
@a-sidorova
Copy link
Contributor Author

@IanWood1 @sjain-stanford hi! Could you please start review?

layernorm(const std::shared_ptr<TensorAttr> &x,
const std::shared_ptr<TensorAttr> &scale,
const std::shared_ptr<TensorAttr> &bias,
const std::shared_ptr<TensorAttr> &epsilon,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The signature for cudnn layernorm only uses 3 tensor inputs: x, scale and bias. Why do we need epsilon to be a Tensor input here?

// Layer normalization node.
//===----------------------------------------------------------------------===//

class LayernormNode : public NodeCRTP<LayernormNode> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need Layernorm backward at some point (follow-on is fine). It's called DLNNode in cudnn: https://sourcegraph.com/github.com/NVIDIA/cudnn-frontend@b372d39879d44c91a8d5b342022e74802b6a8da2/-/blob/include/cudnn_frontend/node/dln.h?L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fusilli] Support Layernorm

2 participants