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

Remove unnecessary .to() inside model forward #298

Merged
merged 1 commit into from
May 2, 2024

Conversation

wconstab
Copy link
Contributor

@wconstab wconstab commented May 2, 2024

Stack from ghstack (oldest at bottom):

This appears to be a holdover from a previous way the initialization
worked.

freqs_cis should already be on gpu device after initialization.

See this conversation for reference.

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 2, 2024
@wconstab wconstab requested review from wanchaol, awgu and tianyu-l May 2, 2024 23:11
@wconstab wconstab merged commit f55adce into gh/wconstab/8/base May 2, 2024
4 checks passed
wconstab added a commit that referenced this pull request May 2, 2024
This appears to be a holdover from a previous way the initialization
worked.

freqs_cis should already be on gpu device after initialization.

ghstack-source-id: 7159320d4ecfb436bd2193277a88c04d136e9ad0
Pull Request resolved: #298
@wconstab wconstab deleted the gh/wconstab/8/head branch May 2, 2024 23:40
tianyu-l pushed a commit to tianyu-l/torchtitan_intern24 that referenced this pull request Aug 16, 2024
This appears to be a holdover from a previous way the initialization
worked.

freqs_cis should already be on gpu device after initialization.

ghstack-source-id: 7159320d4ecfb436bd2193277a88c04d136e9ad0
Pull Request resolved: pytorch#298
philippguevorguian pushed a commit to YerevaNN/YNNtitan that referenced this pull request Aug 17, 2024
This appears to be a holdover from a previous way the initialization
worked.

freqs_cis should already be on gpu device after initialization.

ghstack-source-id: 7159320d4ecfb436bd2193277a88c04d136e9ad0
Pull Request resolved: pytorch#298
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants