This repository was archived by the owner on Sep 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Integrate distributed inference into torchchat cli #1327
Merged
Merged
Conversation
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
Co-authored-by: vmpuri <[email protected]>
Setting numpy version to be the range required by gguf: https://github.com/ggerganov/llama.cpp/blob/master/gguf-py/pyproject.toml
Co-authored-by: vmpuri <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1327
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2d37d27 with merge base 7fe2c86 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
|
|
||
| def _load_model(builder_args: BuilderArgs) -> Model: | ||
| world_mesh, parallel_dims = _maybe_init_distributed(builder_args) | ||
| # world_mesh, parallel_dims = _maybe_init_distributed(builder_args) |
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.
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
lessw2020
reviewed
Oct 24, 2024
lessw2020
approved these changes
Oct 24, 2024
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.
looks great! Thanks for adding this - great job with adding modularity while keeping it light and concise.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR is the first step towards integrating distributed inference into the torchchat CLI.
Currently only
torchchat.py generateis supported.Test:
python torchchat.py generate llama3.1 --distributed --max-new-tokens 40 --prompt "What is Snow?"Output: