Skip to content
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

[JAX] POC of custom call selection #797

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zlsh80826
Copy link
Collaborator

No description provided.

@zlsh80826 zlsh80826 changed the title POC of primitives selection [JAX] POC of custom call selection Apr 22, 2024
def enable_primitive(primitive_name):
"""
Args: primitive name
Return: whether to enable this primitive
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this make the difference between fwd and bwd?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I will regularize the name of primitives in this PR to make the forward primitives has "forward" suffix and backward primitives has "backward" suffix. So that we can select all forward primitives by giving NVTE_PRIMITIVES_RE=".*forward" to select only forward primitives.

transformer_engine/jax/cpp_extensions.py Outdated Show resolved Hide resolved
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.

None yet

2 participants