Skip to content

Conversation

mengluy0125
Copy link
Contributor

Summary: We add a helion kernel to compute 2 * x * sigmoid(x @ w)

Differential Revision: D84968671

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 20, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 20, 2025

@mengluy0125 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84968671.

mengluy0125 added a commit to mengluy0125/helion that referenced this pull request Oct 20, 2025
Summary:
Pull Request resolved: pytorch#989

We add a helion kernel to compute 2 * x * sigmoid(x @ w)

Differential Revision: D84968671
mengluy0125 added a commit to mengluy0125/helion that referenced this pull request Oct 20, 2025
Summary:

We add a helion kernel to compute 2 * x * sigmoid(x @ w)

Differential Revision: D84968671
Copy link
Contributor

@oulgen oulgen left a comment

Choose a reason for hiding this comment

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

rebase please

Summary:

We add a helion kernel to compute 2 * x * sigmoid(x @ w)

Differential Revision: D84968671
"""
Helion SE Block Example
============================
This example demonstrates a Helion kernel implementation of SE Block.
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious what is "SE" short for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Curious what is "SE" short for?

Squeeze and Excitation Net. Basically it performs excitation on embedding, similar as Squeeze and Excitation Net as those used in https://arxiv.org/abs/1709.01507, the idea is to enhance signal/noise ratio to preserve useful information.

Copy link
Contributor

@yf225 yf225 Oct 23, 2025

Choose a reason for hiding this comment

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

thanks! maybe we can add this explanation to this docstring as well to help clarify

Copy link
Contributor

@yf225 yf225 left a comment

Choose a reason for hiding this comment

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

thanks @mengluy0125 ! might need to rebase the PR to resolve the merge conflicts

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

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants