Add env var SGLANG_DUAL_STREAM_TOKEN_THRESHOLD #22458
Workflow file for this run
This file contains hidden or 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
name: Execute Notebooks | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "python/sglang/**" | |
- "docs/**" | |
workflow_dispatch: | |
concurrency: | |
group: execute-notebook-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-all-notebooks: | |
runs-on: 1-gpu-runner | |
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
bash scripts/ci/ci_install_dependency.sh | |
pip install -r docs/requirements.txt | |
apt-get update && apt-get install -y pandoc parallel retry | |
ln -sf "$(which python3)" /usr/bin/python | |
- name: Setup Jupyter Kernel | |
run: | | |
python -m ipykernel install --user --name python3 --display-name "Python 3" | |
- name: Execute notebooks | |
timeout-minutes: 40 | |
run: | | |
cd docs | |
make clean | |
make compile | |
notebook-finish: | |
needs: [ | |
run-all-notebooks | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check all dependent job statuses | |
run: | | |
results=(${{ join(needs.*.result, ' ') }}) | |
for result in "${results[@]}"; do | |
if [ "$result" = "failure" ] || [ "$result" = "cancelled" ]; then | |
echo "Job failed with result: $result" | |
exit 1 | |
fi | |
done | |
echo "All jobs completed successfully" | |
exit 0 |