Skip to content

Conversation

@helunwencser
Copy link
Contributor

@helunwencser helunwencser commented Oct 28, 2024

Right now, rope related code scatters around a few different places in llama_transformer. It makes it hard to make changes to rope related things.

This PR moves all rope related logic into its own module.

Test Plan:
Run eval_llama for llama3.2 1B, which uses rope, with/without this PR. Make sure their perplexity numbers do not change.

Differential Revision: D65102268

[ghstack-poisoned]
@helunwencser
Copy link
Contributor Author

helunwencser commented Oct 28, 2024

Stack from ghstack (oldest at bottom):

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 28, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6542

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 57fb2e2 with merge base 80807fd (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

helunwencser added a commit that referenced this pull request Oct 28, 2024
ghstack-source-id: 6db4643
ghstack-comment-id: 2442844675
Pull Request resolved: #6542
@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 Oct 28, 2024
[ghstack-poisoned]
helunwencser added a commit that referenced this pull request Oct 28, 2024
ghstack-source-id: b209862
ghstack-comment-id: 2442844675
Pull Request resolved: #6542
[ghstack-poisoned]
helunwencser added a commit that referenced this pull request Oct 28, 2024
ghstack-source-id: f688718
ghstack-comment-id: 2442844675
Pull Request resolved: #6542
[ghstack-poisoned]
helunwencser added a commit that referenced this pull request Oct 28, 2024
ghstack-source-id: 3b5de8e
ghstack-comment-id: 2442844675
Pull Request resolved: #6542
@helunwencser
Copy link
Contributor Author

@helunwencser has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants