Skip to content

Commit

Permalink
Some script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
glinscott committed Nov 15, 2020
1 parent 483491f commit a247634
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions scripts/gensfen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Using this commit:
# https://github.com/Sopel97/Stockfish.git
# commit d7d4ec211f7ef35ff39fe8aea54623a468b36c7d

DEPTH=5
GAMES=128000000
SEED=$RANDOM

options="
uci
setoption name PruneAtShallowDepth value false
setoption name Use NNUE value pure
setoption name Threads value 250
setoption name Hash value 10240
setoption name SyzygyPath value /dev/shm/vjoost/3-4-5-6/WDL/:/dev/shm/vjoost/3-4-5-6/DTZ/
isready
gensfen set_recommended_uci_options ensure_quiet random_multi_pv 4 random_multi_pv_diff 50 random_move_count 8 random_move_maxply 20 write_minply 5 eval_limit 1000 seed $SEED depth $DEPTH loop $GAMES output_file_name d${DEPTH}_${GAMES}_${SEED}"

printf "$options" | ./stockfish
5 changes: 3 additions & 2 deletions scripts/rename_net.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

name=nn-$(sha256sum quantized.nnue | cut -c1-12).nnue
# Renames file to SF net format.
name=nn-$(sha256sum $1 | cut -c1-12).nnue
echo ${name}
mv quantized.nnue ${name}
mv $1 ${name}

0 comments on commit a247634

Please sign in to comment.