Skip to content

Commit

Permalink
Merge branch 'main' into zhyncs/distributed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Jan 17, 2025
2 parents 3a6c281 + f3e9b48 commit ec3baf3
Show file tree
Hide file tree
Showing 45 changed files with 1,668 additions and 353 deletions.
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

## Checklist

- [ ] Format your code according to the [Contributor Guide](https://github.com/sgl-project/sglang/blob/main/docs/references/contribution_guide.md).
- [ ] Add unit tests as outlined in the [Contributor Guide](https://github.com/sgl-project/sglang/blob/main/docs/references/contribution_guide.md).
- [ ] Update documentation as needed, including docstrings or example tutorials.
- [ ] Format your code according to the [Code Formatting with Pre-Commit](https://docs.sglang.ai/references/contribution_guide.html#code-formatting-with-pre-commit).
- [ ] Add unit tests as outlined in the [Running Unit Tests](https://docs.sglang.ai/references/contribution_guide.html#running-unit-tests-adding-to-ci).
- [ ] Update documentation / docstrings / example tutorials as needed, according to [Writing Documentation](https://docs.sglang.ai/references/contribution_guide.html#writing-documentation-running-docs-ci).
50 changes: 50 additions & 0 deletions .github/workflows/pr-test-sgl-kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: PR Test (sgl-kernel)

on:
push:
branches: [ main ]
paths:
- "sgl-kernel/**"
pull_request:
branches: [ main ]
paths:
- "sgl-kernel/**"
workflow_dispatch:

concurrency:
group: pr-test-sgl-kernel-${{ github.ref }}
cancel-in-progress: true

jobs:
unit-test:
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_dependency.sh
cd sgl-kernel
git submodule update --init --recursive
pip3 install -e . --force-reinstall
pip3 list | grep sgl-kernel
- name: Run test
timeout-minutes: 10
run: |
cd sgl-kernel
find tests -name "test_*.py" | xargs -n 1 python3
- name: Uninstall dependencies
run: |
pip3 uninstall sgl-kernel -y
finish:
needs: [unit-test]
runs-on: ubuntu-latest
steps:
- name: Finish
run: echo "This is an empty step to ensure that all jobs are completed."
2 changes: 1 addition & 1 deletion .github/workflows/release-docker-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
publish:
if: github.repository == 'sgl-project/sglang'
runs-on: ubuntu-latest
runs-on: amd-docker
environment: 'prod'
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Execute notebooks and push to documents
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DOCUMENTATION_PAT_TOKEN }}
run: |
cd docs
make clean
Expand Down
Loading

0 comments on commit ec3baf3

Please sign in to comment.