Infatoshi's picture
Add files using upload-large-folder tool
d5aec45 verified
Raw History Blame Contribute Delete
1.13 kB
#!/bin/bash
# lane/guiact step 4: recipe-c1 and move-c3 again (their first reruns spanned a rebuild of out/runtime: the envs made after it loaded the new playview.so beside the old libnwrl.so)
# comparison share the card: three runs at once ran it out of memory), at most two at a time
cd $HOME/dev/mcsr-speedrun
export NETHERITE=$HOME/dev/nv2-lanes/guiact UV_CACHE_DIR=$HOME/.cache/uv TMPDIR=$HOME/dev/nw/.tmp
TB=$HOME/dev/netherite-v2/out/flywheel/bin/tbench.sh
D=data/guiact
free2() { nvidia-smi --query-gpu=index,memory.free --format=csv,noheader,nounits | awk -F', ' '$1==2 {print $2}'; }
run() { # NAME ARGS...
local name=$1; shift
while [ $(free2) -lt 16000 ] || [ $(pgrep -c -f "^\.venv/bin/python scripts/guihead_dagger") -ge 2 ]; do sleep 20; done
echo "$(date +%T) start $name"
$TB 2 -gate -- /usr/bin/time -v .venv/bin/python scripts/guihead_dagger.py "$@" --init data/invhead/dagger2-vpt.pt \
--out $D/$name.pt > $D/$name.log 2>&1
echo "$(date +%T) done $name rc $?"
}
run recipe-c1 --variant recipe --click-interval 1 &
sleep 60
run move-c3 --variant move --click-interval 3 &
wait
echo QUEUE10 DONE