Skip to content

Commit 7366bce

Browse files
authored
Merge branch 'THUDM:main' into main
2 parents f680944 + 578f3d5 commit 7366bce

162 files changed

Lines changed: 12690 additions & 2415 deletions

File tree

Some content is hidden

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

.github/workflows/conda-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: self-hosted
1515
container:
1616
image: lmsysorg/sglang:v0.5.0rc0-cu126
17-
options: --gpus all --ipc=host --shm-size=16g --ulimit memlock=-1 --ulimit stack=67108864 --memory=0 --memory-swap=0 -v /data/models:/root/models -v /data/datasets:/root/datasets
17+
options: --gpus all --ipc=host --shm-size=16g --ulimit memlock=-1 --ulimit stack=67108864 --memory=0 --memory-swap=0 -v /mnt/nvme0n1/models:/root/models -v /mnt/nvme0n1/datasets:/root/datasets
1818

1919
defaults:
2020
run:

.github/workflows/pr-test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: PR Test
2+
3+
on:
4+
# Do not run CI on push to reduce CI time
5+
# push:
6+
# branches: [main]
7+
pull_request:
8+
branches: [main]
9+
types: [synchronize, labeled]
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
e2e-test:
17+
# TODO may use run-ci label etc
18+
if: github.event.pull_request.draft == false
19+
runs-on: self-hosted
20+
container:
21+
image: slimerl/slime:latest
22+
options: >
23+
--gpus all
24+
--ipc=host
25+
--shm-size=16g
26+
--ulimit memlock=-1
27+
--ulimit stack=67108864
28+
--memory=0
29+
--memory-swap=0
30+
-v /mnt/nvme0n1/slime_ci:/data/slime_ci
31+
-v /mnt/nvme0n1/models:/root/models
32+
-v /mnt/nvme0n1/datasets:/root/datasets
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
info:
37+
- {test_file: test_quick_start_glm4_9B.py}
38+
- {test_file: test_qwen3_30B_A3B.py}
39+
# TODO use deterministic kernel
40+
defaults:
41+
run:
42+
working-directory: ${{ github.workspace }}
43+
env:
44+
GITHUB_COMMIT_NAME: ${{ github.sha }}_${{ github.event.pull_request.number || 'non-pr' }}
45+
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
46+
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Install
52+
shell: bash
53+
run: cd $GITHUB_WORKSPACE && pip install -e .
54+
55+
- name: Execute
56+
shell: bash
57+
run: python tests/${{ matrix.info.test_file }}

.github/workflows/pre-commit.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pre-commit
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
run-pre-commit:
14+
name: Run pre-commit
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.10'
26+
cache: 'pip'
27+
28+
- name: Install pre-commit
29+
run: pip install --upgrade pip pre-commit
30+
31+
- name: Cache pre-commit environments
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.cache/pre-commit
35+
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
36+
restore-keys: |
37+
pre-commit-${{ runner.os }}-
38+
39+
- name: Run pre-commit on all files
40+
run: pre-commit run --all-files --show-diff-on-failure --color=always
41+

.github/workflows/slime-ci.yml

Lines changed: 0 additions & 156 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,5 @@ local/
189189
*.iml
190190

191191
glm/
192-
_examples_synced/
192+
_examples_synced/
193+
.env

0 commit comments

Comments
 (0)