okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
e2de691c7
main
1#!/bin/bash 2# usage: driver.sh ROUNDS "cfg1 cfg2 ..." -- one flock job per (round, config); alternate order each round 3cd /data/1402-h 4R =$ 1 ;shift 5CFGS =($ 1 ) 6for ((r =0;r< R;r++));do 7if (( r % 2 == 1 )) ;then ORDER =($( printf '%s\n' " ${ CFGS [@]} " | tac ) );else ORDER =(" ${ CFGS [@]} " );fi 8for c in " ${ ORDER [@]} " ;do 9flock /data/gpu.lock timeout 1790 /data/venv/bin/python bench_vs_llama.py run--machine res/$ MACH --out res--rounds 1--start-round $((r +10))--configs $ c >> drive.log2 >&1 10done 11done 12echo DRIVER-DONE>> drive.log