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

tag KJT related part to sc.INPUT_DIST #2678

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiyuanzFB
Copy link

Summary: tag KJT output to sc.INPUT_DIST to enforce placement on CPU

Differential Revision: D67313214

Summary: tag KJT output to sc.INPUT_DIST to enforce placement on CPU

Differential Revision: D67313214
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 11, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67313214

@@ -300,6 +300,23 @@ def _fx_trec_unwrap_kjt(
return indices.int(), offsets.int()


@torch.fx.wrap
Copy link
Member

Choose a reason for hiding this comment

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

this line not needed

Copy link
Member

@jingsh jingsh left a comment

Choose a reason for hiding this comment

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

nits

Comment on lines +309 to +310
CPU - int32 or int64, offsets dtype must match
GPU - int32 only, offsets dtype must match
Copy link
Member

Choose a reason for hiding this comment

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

can you provide reference on this dtype?

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 Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants