Skip to content

Commit a0d3267

Browse files
committed
Merge branch 'main' into feat/draft-model-tp
2 parents 55c1a23 + ca2fc85 commit a0d3267

File tree

96 files changed

+7949
-882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+7949
-882
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/**"
9+
- "version.txt"
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: release-docs-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
execute-and-deploy:
18+
runs-on: ubuntu-latest
19+
if: github.repository == 'sgl-project/specforge'
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.13'
28+
29+
30+
- name: Install dependencies
31+
run: |
32+
apt-get update && apt-get install -y pandoc parallel retry
33+
pip install -r docs/requirements.txt
34+
35+
- name: Build documentation
36+
run: |
37+
cd docs
38+
make compile
39+
make html
40+
41+
- name: Deploy
42+
uses: peaceiris/actions-gh-pages@v4
43+
with:
44+
personal_token: ${{ secrets.PERSONAL_TOKEN }}
45+
publish_dir: ./docs/_build/html
46+
cname: docs.sglang.ai/SpecForge

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PR Test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: pr-test-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
unit-test:
14+
if: (github.repository == 'sgl-project/SpecForge' || github.event_name == 'pull_request') &&
15+
github.event.pull_request.draft == false
16+
runs-on: [self-hosted]
17+
container:
18+
image: lmsysorg/sglang:dev
19+
options: --gpus all --shm-size=2g --rm -v /dev/shm
20+
env:
21+
CUDA_VISIBLE_DEVICES: 6,7
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Install dependencies
27+
run: |
28+
pip install -e .
29+
30+
- name: Run test
31+
timeout-minutes: 10
32+
run: |
33+
python -m unittest discover -s ./tests -p "test_*.py"

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ cache/
195195
outputs/
196196
wandb/
197197
.idea
198+
.vscode/
198199

199200
# macOS
200201
.DS_Store
201-
202-
.vscode/

0 commit comments

Comments
 (0)