forked from sgl-project/sglang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sgl-project:main' into main
- Loading branch information
Showing
170 changed files
with
5,657 additions
and
3,356 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# https://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{json,yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
x-soft-wrap-text = true | ||
|
||
[*.rst] | ||
indent_size = 4 | ||
x-soft-wrap-text = true | ||
|
||
[Makefile] | ||
indent_style = tab |
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: PR Test (Rust) | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- "rust/**" | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- "rust/**" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: pr-test-rust-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
unit-test-rust: | ||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' | ||
runs-on: 1-gpu-runner | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
bash scripts/ci_install_rust.sh | ||
- name: Run fmt | ||
run: | | ||
source "$HOME/.cargo/env" | ||
cd rust/ | ||
cargo fmt -- --check | ||
- name: Run test | ||
timeout-minutes: 20 | ||
run: | | ||
source "$HOME/.cargo/env" | ||
cd rust/ | ||
cargo test |
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 |
---|---|---|
|
@@ -9,6 +9,10 @@ on: | |
- 'python/sglang/version.py' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: release-docs-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
execute-and-deploy: | ||
runs-on: 1-gpu-runner | ||
|
@@ -38,20 +42,16 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | ||
run: | | ||
cd docs | ||
for nb in *.ipynb; do | ||
if [ -f "$nb" ]; then | ||
echo "Executing $nb" | ||
jupyter nbconvert --to notebook --execute --inplace "$nb" \ | ||
--ExecutePreprocessor.timeout=600 \ | ||
--ExecutePreprocessor.kernel_name=python3 | ||
fi | ||
done | ||
make clean | ||
make compile | ||
make html | ||
cd _build/html | ||
git clone https://[email protected]/sgl-project/sgl-project.github.io.git ../sgl-project.github.io | ||
git clone https://[email protected]/sgl-project/sgl-project.github.io.git ../sgl-project.github.io --depth 1 | ||
rm -rf ../sgl-project.github.io/* | ||
cp -r * ../sgl-project.github.io | ||
cp ../../README.md ../sgl-project.github.io/README.md | ||
cd ../sgl-project.github.io | ||
git config user.name "zhaochenyang20" | ||
git config user.email "[email protected]" | ||
|
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 |
---|---|---|
|
@@ -185,4 +185,4 @@ tmp*.txt | |
work_dirs/ | ||
*.csv | ||
|
||
!logo.png | ||
!logo.png |
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,3 +1,3 @@ | ||
[settings] | ||
profile=black | ||
known_first_party=sglang | ||
known_first_party=sglang |
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.