-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
695 additions
and
195 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<!-- Thank you for your contribution, we really appreciate it. The following instructions will help improve your pull request and make it easier to receive feedback. If there are any items you don't understand, don't worry. Just submit the pull request and ask the maintainers for help. --> | ||
<!-- Thank you for your contribution! We appreciate it. The following guidelines will help improve your pull request and facilitate feedback. If anything is unclear, don't hesitate to submit your pull request and ask the maintainers for assistance. --> | ||
|
||
## Motivation | ||
|
||
<!-- Please explain the motivation behind this PR and the goal you aim to achieve with it. --> | ||
<!-- Explain the purpose of this PR and the goals it aims to achieve. --> | ||
|
||
## Modification | ||
## Modifications | ||
|
||
<!-- Briefly describe the changes made in this PR. --> | ||
<!-- Describe the changes made in this PR. --> | ||
|
||
## Checklist | ||
|
||
- [ ] Before submitting a PR for review, make sure it has passed verification in your local development environment **at least**. | ||
- [ ] Ensure pre-commit `pre-commit run --all-files` or other linting tools are used to fix potential lint issues. | ||
- [ ] Confirm that modifications are covered by complete unit tests. If not, please add more unit tests for correctness. | ||
- [ ] Modify documentation as needed, such as docstrings or example tutorials. | ||
- [ ] Format your code according to the [Contributor Guide](https://github.com/sgl-project/sglang/blob/main/docs/en/contributor_guide.md). | ||
- [ ] Add unit tests as outlined in the [Contributor Guide](https://github.com/sgl-project/sglang/blob/main/docs/en/contributor_guide.md). | ||
- [ ] Update documentation as needed, including docstrings or example tutorials. |
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
"""Launch the inference server.""" | ||
|
||
import argparse | ||
import os | ||
|
||
from sglang.srt.server import launch_server | ||
from sglang.srt.server_args import ServerArgs | ||
from sglang.srt.utils import kill_child_process | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
ServerArgs.add_cli_args(parser) | ||
args = parser.parse_args() | ||
server_args = ServerArgs.from_cli_args(args) | ||
|
||
launch_server(server_args) | ||
try: | ||
launch_server(server_args) | ||
except Exception as e: | ||
raise e | ||
finally: | ||
kill_child_process(os.getpid(), including_parent=False) |
This file contains 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 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 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 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 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 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 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 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.