Skip to content
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

Rename rust folder to sgl-router #2464

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
/python/sglang/srt/sampling @merrymercy @hnyls2002
/test/lang @merrymercy @Ying1123 @ByronHsu
/test/srt @merrymercy @Ying1123 @zhyncs
/rust @ByronHsu @Ying1123
/sglang-router @ByronHsu @Ying1123
12 changes: 6 additions & 6 deletions .github/workflows/pr-test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches: [ main ]
paths:
- "rust/**"
- "sgl-router/**"
pull_request:
branches: [ main ]
paths:
- "rust/**"
- "sgl-router/**"
workflow_dispatch:

concurrency:
Expand All @@ -30,14 +30,14 @@ jobs:
- name: Run fmt
run: |
source "$HOME/.cargo/env"
cd rust/
cd sgl-router/
cargo fmt -- --check

- name: Run test
timeout-minutes: 20
run: |
source "$HOME/.cargo/env"
cd rust/
cd sgl-router/
cargo test

e2e-rust:
Expand All @@ -54,14 +54,14 @@ jobs:
- name: Build python binding
run: |
source "$HOME/.cargo/env"
cd rust
cd sgl-router
pip install setuptools-rust wheel build
python3 -m build
pip install --force-reinstall dist/*.whl
- name: Run e2e test
run: |
bash scripts/killall_sglang.sh
cd rust/py_test
cd sgl-router/py_test
python3 run_suite.py

finish:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-pypi-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
paths:
- rust/pyproject.toml
- sglang-router/pyproject.toml
workflow_dispatch:

jobs:
Expand All @@ -26,9 +26,9 @@ jobs:
with:
path: sglang-repo

- name: Move rust folder to root and delete sglang-repo
- name: Move sglang-router folder to root and delete sglang-repo
run: |
mv sglang-repo/rust/* .
mv sglang-repo/sglang-router/* .
rm -rf sglang-repo
ls -alt

Expand Down Expand Up @@ -69,9 +69,9 @@ jobs:
with:
path: sglang-repo

- name: Move rust folder to root, copy the license file, and delete sglang-repo
- name: Move sglang-router folder to root, copy the license file, and delete sglang-repo
run: |
mv sglang-repo/rust/* .
mv sglang-repo/sglang-router/* .
mv sglang-repo/LICENSE .
rm -rf sglang-repo
ls -alt
Expand Down
2 changes: 1 addition & 1 deletion docs/router/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The router is a independent Python package, and it can be used as a drop-in repl
$ pip install sglang-router
```

Detailed usage of the router can be found in [launch_router](https://github.com/sgl-project/sglang/blob/main/rust/py_src/sglang_router/launch_router.py) and [launch_server](https://github.com/sgl-project/sglang/blob/main/rust/py_src/sglang/launch_server.py). Also, you can directly run the following command to see the usage of the router.
Detailed usage of the router can be found in [launch_router](https://github.com/sgl-project/sglang/blob/main/sgl-router/py_src/sglang_router/launch_router.py) and [launch_server](https://github.com/sgl-project/sglang/blob/main/sgl-router/py_src/sglang/launch_server.py). Also, you can directly run the following command to see the usage of the router.

```bash
$ python -m sglang_router.launch_server --help
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading