Repository navigation
101 lines (93 loc) · 3.08 KB
/
Copy pathci.yml
File metadata and controls
101 lines (93 loc) · 3.08 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI
on:
push:
pull_request:
permissions:
contents: read
env:
PYTHONDONTWRITEBYTECODE: "1"
jobs:
verify:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install test dependencies
run: python -m pip install -e '.[dev]'
- name: Run tests
run: python -m pytest -q
packages:
runs-on: ubuntu-latest
strategy:
matrix:
package-version: ["v1", "v2", "v3"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
cache: pip
cache-dependency-path: versions/${{ matrix.package-version }}/pyproject.toml
- name: Install selected generation
run: python -m pip install -e versions/${{ matrix.package-version }}
- name: Verify installed namespace
run: python -c "import DanKS; print(DanKS.__file__)"
- name: Run retrieval example
run: python examples/retrieval_quickstart.py --version ${{ matrix.package-version }}
v3-model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
cache: pip
cache-dependency-path: versions/v3/pyproject.toml
- name: Install CPU PyTorch
run: python -m pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/cpu
- name: Install V3
run: python -m pip install -e versions/v3
- name: Run model forward smoke test
run: python examples/v3_model_smoke.py
- name: Run PPO update smoke test
run: python examples/v3_ppo_smoke.py
- name: Verify PPO entry point
run: python -m DanKS.training.train_ppo --help
v3pro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
- name: Install CPU inference and source packages
run: |
python -m pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/cpu
python -m pip install -e '.[dev]' -e versions/v3 -e versions/v3pro
- name: Verify V3Pro components and search
run: python -m pytest tests/test_v3pro.py tests/test_v3pro_endgame.py -q
- name: Run source-only inference and search example
run: python examples/v3pro_smoke.py
native-kernels:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
cache: pip
cache-dependency-path: versions/v3/pyproject.toml
- name: Install V3 build dependencies
run: python -m pip install -e versions/v3
- name: Build and verify C++ kernels
run: danks-build-native