Skip to content

adjust interface #3669

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

Closed
wants to merge 1 commit into from
Closed

Conversation

coconutruben
Copy link
Contributor

Summary:

Why

  1. we're extracting the size wrong after the latest changes, rather than extracing it from w1 we need to get it from w2 as w1 is treated at 2x intermediate size on gate_only=False
  2. we're hard-coding the weights dtype when we should be extracting it
  3. we're using the default stream instead of the current stream

What

  1. get intermediate size from w2
  2. do not hard-code the topk_weights dtype
  3. use current stream

Reviewed By: sijiac

Differential Revision: D69341443

Summary:
# Why

1. we're extracting the size wrong after the latest changes, rather than extracing it from w1 we need to get it from w2 as w1 is treated at 2x intermediate size on `gate_only=False`
2. we're hard-coding the weights dtype when we should be extracting it
3. we're using the default stream instead of the current stream

# What

1. get intermediate size from w2
2. do not hard-code the `topk_weights` dtype
3. use current stream

Reviewed By: sijiac

Differential Revision: D69341443
@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Feb 8, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 2215a80
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67a6b90ed45e380008677e47
😎 Deploy Preview https://deploy-preview-3669--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 718ea47.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
X-link: pytorch#3669

Pull Request resolved: facebookresearch/FBGEMM#747

# Why

1. we're extracting the size wrong after the latest changes, rather than extracing it from w1 we need to get it from w2 as w1 is treated at 2x intermediate size on `gate_only=False`
2. we're hard-coding the weights dtype when we should be extracting it
3. we're using the default stream instead of the current stream

# What

1. get intermediate size from w2
2. do not hard-code the `topk_weights` dtype
3. use current stream

Reviewed By: sijiac

Differential Revision: D69341443

fbshipit-source-id: cf7a908c6a78d3ecb9d030491722967fbe0d097b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants