-
Notifications
You must be signed in to change notification settings - Fork 278
53 lines (48 loc) · 1.67 KB
/
cpu_skyrl.yaml
File metadata and controls
53 lines (48 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: SkyRL-CPU
on:
push:
branches: [ main ]
paths:
- 'ci/**'
- 'skyrl/**'
- 'tests/**'
- 'pyproject.toml'
- '.github/workflows/cpu_skyrl.yaml'
pull_request:
paths:
- 'ci/**'
- 'skyrl/**'
- 'tests/**'
- 'pyproject.toml'
- '.github/workflows/cpu_skyrl.yaml'
workflow_dispatch:
permissions:
checks: write # for status checks to appear
contents: read
# Cancel runs for previous commits on the same branch
concurrency:
group: skyrl-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
skyrl_tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Run lint
run: |
uvx ruff check
- name: Run pytest
run: |
# Note: Qwen 3.5 currently needs transformers v5, but we are not ready to fully migrate to it yet
uv run --extra tinker --extra jax --extra dev --with transformers==5.2.0 pytest --forked -s tests/tx/models/test_qwen3_5.py
uv run --extra tinker --extra jax --extra dev pytest --forked -s tests --ignore=tests/tx/gpu --ignore=tests/train --ignore=tests/backends/skyrl_train --ignore=tests/tx/models/test_qwen3_5.py
- name: Run engine benchmarks
run: |
uv run --extra tinker --extra dev python skyrl/benchmarks/benchmark_engine.py --base-model trl-internal-testing/tiny-Qwen3ForCausalLM --backend-config '{"max_lora_adapters": 3, "max_lora_rank": 1}' --num-warmup-steps 1 --num-steps 1 --num-requests 1 --seq-len 8 --sample-max-tokens 16