-
-
Notifications
You must be signed in to change notification settings - Fork 11.9k
[V1] Support MP Executor for multi node distributed inference #23691
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
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
876bab1
support non-ray DI
luccafong c1fec8a
add tests
luccafong a748250
fix lint
luccafong 3db52e0
merge mp and mp distributed
luccafong 058d9d5
clean up distributed executor and address comments
luccafong 2d56d06
add executor test
luccafong 1913bd3
Merge remote-tracking branch 'origin/main' into lucia/non-ray-di
luccafong 8984b7d
exector only
luccafong bfb3dd7
revert change to core.py
luccafong aad47eb
address minor comments
luccafong e868c24
compatibility with dp
luccafong b20664c
Merge branch 'main' into lucia/non-ray-di
luccafong 55439d6
fix lint
luccafong 2d401b0
Merge remote-tracking branch 'origin/main' into lucia/non-ray-di
luccafong bd8614b
add more comments
luccafong 3733404
simplify process
njhill 0291991
bit more cleanup
njhill 7ceea17
move method
njhill 8ca2301
simply lb mode selection and fix serving and lint issues
luccafong 05668ce
fix test
luccafong 2938621
Merge remote-tracking branch 'origin/main' into lucia/non-ray-di
luccafong d5463a7
add assertion
luccafong f23904a
add back version number in launch msg
luccafong acc44db
add more comments explaining blocking
luccafong 93e606a
arg change and model executor cleanup
luccafong 3074132
clean up gpu model runner code that is not needed
luccafong 046cb67
fix lint
luccafong 6de8648
remove print
luccafong 3178648
address commment
luccafong 7595a25
fix test for the positional arg used
luccafong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a good idea to add
nnodesas an attribute to the very generalParallelConfigclass where it is just meaningful whendistributed_executor_backendis mp. Many AI labs rely heavily on RAY and when the distibuted executor backend is ray,nnodeswill always be wrong here is it'll stay1even iftensor_parallelis set to something like 16 on 8xH200.It's not intuitive when doing
self.vllm_config.parallel_config.nnodesto get1here for ray backend and it's not enough to just state in the comment that it's only formp. IMO we need to make sure thatnnodesalways displays the correct number of nodes no matter the parallel backend. Similarlynode_rankalso needs to make sense for ray. If it's impossible to put good values for ray we should at least prefix it withnnodes_for_mp_backendUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nnodes_for_mp_backendmight be pretty hard to use, does set them to None be a better way to resolve the conflicts and confusion? and we can raise error if user set it for ray. @patrickvonplaten