-
Notifications
You must be signed in to change notification settings - Fork 251
Integrate distributed inference into torchchat cli #1327
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
25 commits
Select commit
Hold shift + click to select a range
481e00b
add pp_dim, distributed, num_gpus, num_nodes as cmd line args
lessw2020 2f1787c
add tp_dim
lessw2020 fd3ddcd
add elastic_launch
lessw2020 bf79697
working, can now launch from cli
lessw2020 26a9455
Remove numpy < 2.0 pin to align with pytorch (#1301)
larryliu0820 5f0ca00
Update torchtune pin to 0.4.0-dev20241010 (#1300)
vmpuri 598caf5
Unbreak gguf util CI job by fixing numpy version (#1307)
larryliu0820 6fe1646
Remove apparently-unused import torchvision in model.py (#1305)
swolchok 78debce
remove global var for tokenizer type + patch tokenizer to allow list …
mreso 2eefb13
make pp tp visible in interface
mreso e8bb076
Add llama 3.1 to dist_run.py
mreso 1faa052
[WIP] Move dist inf into its own generator
mreso 11f29fc
Add initial generator interface to dist inference
mreso adcf232
Added generate method and placeholder scheduler
mreso 3836928
use prompt parameter for dist generation
mreso 3f6fa2d
Enforce tp>=2
mreso fd9f704
Build tokenizer from TokenizerArgs
mreso e8f7c98
Disable torchchat format + constrain possible models for distributed
mreso 9ec55fb
disable calling dist_run.py directly for now
mreso 80f8138
Restore original dist_run.py for now
mreso abf0679
Merge branch 'main' into refactor/dist_run
mreso 99606ab
disable _maybe_parallelize_model again
mreso 4b8cdcb
Reenable arg.model_name in dist_run.py
mreso b8f88fd
Use singleton logger instead of print in generate
mreso 2d37d27
Address PR comments; try/expect in launch_dist_inference; added comments
mreso 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
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.
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.
this code is now effectively dead and we should just remove it but a later PR.