Skip to content

Avoid multiple instantiations of the RoPE class #1828

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

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

jeejeelee
Copy link
Collaborator

Avoid multiple instantiations of the ROPE class.

Copy link
Collaborator

@Yard1 Yard1 left a comment

Choose a reason for hiding this comment

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

I think this makes a lot of sense! cc @WoosukKwon

@Yard1 Yard1 changed the title modify the initialization of rope Avoid multiple instantiations of the RoPE class Nov 30, 2023
@WoosukKwon
Copy link
Collaborator

@Yard1 Let me test TP > 1.

@Yard1
Copy link
Collaborator

Yard1 commented Nov 30, 2023

It should work since the initialization should happen in separate processes, but please let us know how it goes.

@WoosukKwon
Copy link
Collaborator

@Yard1 It seems working! @jeejeeli Thanks for your contribution!

@WoosukKwon WoosukKwon merged commit 63b2206 into vllm-project:main Nov 30, 2023
@jeejeelee jeejeelee deleted the modify-rope branch November 30, 2023 07:07
xjpang pushed a commit to xjpang/vllm that referenced this pull request Dec 4, 2023
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
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.

3 participants