-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.25 KB
/
Copy pathspsa.yml
File metadata and controls
42 lines (39 loc) · 1.25 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
name: run SPSA (see gist)
on:
workflow_dispatch:
jobs:
worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install dependencies
run: |
wget https://github.com/official-stockfish/books/raw/refs/heads/master/UHO_Lichess_4852_v1.epd.zip
unzip UHO_Lichess_4852_v1.epd.zip
wget https://github.com/Disservin/fastchess/releases/download/v1.8.0-alpha/fastchess-linux-x86-64.tar
tar -xf fastchess-linux-x86-64.tar
chmod +x fastchess-linux-x86-64/fastchess
mv fastchess-linux-x86-64/fastchess fastchess
- name: Build engine
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j$(nproc)
- name: Tune engine
run: |
python spsa.py --iters 40 --pairs 30 --engine build/engine --workers $(nproc)
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: spsa-results
path: |
./Weights.h
games*.pgn
games*.epd
compression-level: 9