Rename rust folder to sgl-router (#2464)
Signed-off-by: Ata Fatahi <immrata@gmail.com>
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -11,4 +11,4 @@
|
|||||||
/python/sglang/srt/sampling @merrymercy @hnyls2002
|
/python/sglang/srt/sampling @merrymercy @hnyls2002
|
||||||
/test/lang @merrymercy @Ying1123 @ByronHsu
|
/test/lang @merrymercy @Ying1123 @ByronHsu
|
||||||
/test/srt @merrymercy @Ying1123 @zhyncs
|
/test/srt @merrymercy @Ying1123 @zhyncs
|
||||||
/rust @ByronHsu @Ying1123
|
/sglang-router @ByronHsu @Ying1123
|
||||||
|
|||||||
12
.github/workflows/pr-test-rust.yml
vendored
12
.github/workflows/pr-test-rust.yml
vendored
@@ -4,11 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- "rust/**"
|
- "sgl-router/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- "rust/**"
|
- "sgl-router/**"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -30,14 +30,14 @@ jobs:
|
|||||||
- name: Run fmt
|
- name: Run fmt
|
||||||
run: |
|
run: |
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cd rust/
|
cd sgl-router/
|
||||||
cargo fmt -- --check
|
cargo fmt -- --check
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
run: |
|
run: |
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cd rust/
|
cd sgl-router/
|
||||||
cargo test
|
cargo test
|
||||||
|
|
||||||
e2e-rust:
|
e2e-rust:
|
||||||
@@ -54,14 +54,14 @@ jobs:
|
|||||||
- name: Build python binding
|
- name: Build python binding
|
||||||
run: |
|
run: |
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cd rust
|
cd sgl-router
|
||||||
pip install setuptools-rust wheel build
|
pip install setuptools-rust wheel build
|
||||||
python3 -m build
|
python3 -m build
|
||||||
pip install --force-reinstall dist/*.whl
|
pip install --force-reinstall dist/*.whl
|
||||||
- name: Run e2e test
|
- name: Run e2e test
|
||||||
run: |
|
run: |
|
||||||
bash scripts/killall_sglang.sh
|
bash scripts/killall_sglang.sh
|
||||||
cd rust/py_test
|
cd sgl-router/py_test
|
||||||
python3 run_suite.py
|
python3 run_suite.py
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
|||||||
10
.github/workflows/release-pypi-router.yml
vendored
10
.github/workflows/release-pypi-router.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- rust/pyproject.toml
|
- sglang-router/pyproject.toml
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -26,9 +26,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: sglang-repo
|
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: |
|
run: |
|
||||||
mv sglang-repo/rust/* .
|
mv sglang-repo/sglang-router/* .
|
||||||
rm -rf sglang-repo
|
rm -rf sglang-repo
|
||||||
ls -alt
|
ls -alt
|
||||||
|
|
||||||
@@ -69,9 +69,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: sglang-repo
|
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: |
|
run: |
|
||||||
mv sglang-repo/rust/* .
|
mv sglang-repo/sglang-router/* .
|
||||||
mv sglang-repo/LICENSE .
|
mv sglang-repo/LICENSE .
|
||||||
rm -rf sglang-repo
|
rm -rf sglang-repo
|
||||||
ls -alt
|
ls -alt
|
||||||
|
|||||||
@@ -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
|
$ 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
|
```bash
|
||||||
$ python -m sglang_router.launch_server --help
|
$ python -m sglang_router.launch_server --help
|
||||||
|
|||||||
0
rust/Cargo.lock → sgl-router/Cargo.lock
generated
0
rust/Cargo.lock → sgl-router/Cargo.lock
generated
Reference in New Issue
Block a user