-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Simple and stable Inference APIs #4697
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
49 commits
Select commit
Hold shift + click to select a range
8debc5e
feat(inference): add ServeConfig and _EventLoopManager
YangFei1990 4ca3c95
feat(inference): add coordinator runtime and _MegatronLLMBase
YangFei1990 d7e68f1
feat(inference): add MegatronAsyncLLM, slim base class
YangFei1990 c03ab48
feat(inference): add MegatronLLM
YangFei1990 5c38044
refactor(inference): drop model_name fields from ServeConfig
YangFei1990 6331cc0
feat(inference): add MegatronAsyncLLM.serve(), drop ServeConfig.role
YangFei1990 b6448e8
feat(inference): add offline_inference example, fix high-level API bugs
YangFei1990 44ec5a9
feat(inference): add launch_inference_server example, fix daemon-thre…
YangFei1990 0d8ae8b
fix(tests): repoint inference recipes and cuda_graphs.sh to examples/…
YangFei1990 589626d
test(inference): add unit tests for the high-level inference API
YangFei1990 2eb2e81
test(inference): add functional tests for offline_inference 4 modes w…
YangFei1990 739f3b0
test(inference): add HTTP smoke test for launch_inference_server with…
YangFei1990 8ff9a26
docs(inference): add README for the high-level inference API
YangFei1990 9e7fae3
docs(inference): rewrite examples README and remove stale llama_mistr…
YangFei1990 5f651b7
Merge branch 'main' into inference_apis
YangFei1990 34494c5
ci(inference): satisfy linting, copyright-check, and build-docs
YangFei1990 8caa84d
Merge branch 'inference_apis' of https://github.com/YangFei1990/Megat…
YangFei1990 963f663
Merge branch 'main' into inference_apis
YangFei1990 67a9122
handle coordinator subprocess during partial shutdown
YangFei1990 b754bd2
do not hardcode return_log_probs
YangFei1990 e1c6353
raise when running sync inside a eventloop
YangFei1990 dd70796
add future roadmap and knwn limitations
YangFei1990 db9f475
always use Optional instead of |; remove unneeded doc
YangFei1990 30f1020
raise error when ep > 1 and coordinator is not enabled
YangFei1990 93b30a0
use event to wait the loop ready
YangFei1990 2759cdd
docs(inference): rename examples/inference/legacy to advanced and exp…
YangFei1990 856c851
fix bcast and import path
YangFei1990 c38eb66
forbid running async + direct
YangFei1990 34ca470
refactor(inference): move high-level API to megatron/core/inference/apis
YangFei1990 dac4fc2
Merge branch 'main' into inference_apis
YangFei1990 4be95ff
update doc
YangFei1990 a3aade9
Merge branch 'main' into inference_apis
YangFei1990 dd41c05
fix lint
YangFei1990 4cff952
simplify tests
YangFei1990 450380d
add meaningful tests
YangFei1990 1bbdada
Merge branch 'main' into inference_apis
YangFei1990 ec780e5
fix lint
YangFei1990 7f53bd1
Merge branch 'main' into inference_apis
YangFei1990 7b513a0
modify inaccurate doc and make torch import default
YangFei1990 ea0bc17
Merge branch 'main' into inference_apis
YangFei1990 74eb926
update doc to remove async + direct mode
YangFei1990 0b44fb8
fix CI
YangFei1990 d76fca4
Merge branch 'main' into inference_apis
YangFei1990 27b920e
Merge branch 'main' into inference_apis
YangFei1990 0298310
increase test coverage
YangFei1990 4e3269d
Merge branch 'main' into inference_apis
YangFei1990 42a9ead
fix import
YangFei1990 f85df57
Revert "increase test coverage"
YangFei1990 87ba21c
Merge branch 'inference_apis' of https://github.com/YangFei1990/Megat…
YangFei1990 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
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.