Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/gpu-head-to-head/blob/main/q35-9b/tools/rounds.sh # gpu-head-to-head aien-dev/gpu-head-to-head Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `gpu-head-to-head / q35-9b / tools / rounds.sh` 21 lines ยท 965 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # Throwaway: PROTOCOL.md "Design". 3 rounds; per round every ready arm once, order from random.Random(9). 3 # usage: rounds.sh ARM [ARM ...] (arms whose env/GGUF is ready; missing arms are NOT_RUN, listed in the log) 4 set -u 5 H=/home/drakestapleton/handoffs/H2H9B 6 mkdir -p $H/results 7 ORDER=$(python3 -c " 8 import random, sys 9 arms = sys.argv[1:]; r = random.Random(9) 10 for k in (1, 2, 3): 11 a = list(arms); r.shuffle(a); print('R%d %s' % (k, ' '.join(a)))" "$@") 12 echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) arms: $* ; order:" | tee -a $H/results/rounds.log 13 echo "$ORDER" | tee -a $H/results/rounds.log 14 while read -r R arms; do 15 for A in $arms; do 16 echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) start $A $R" >> $H/results/rounds.log 17 $H/run9b.sh $A $R > /dev/null 2>&1 18 echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) end $A $R rc=$?" >> $H/results/rounds.log 19 done 20 done <<< "$ORDER" 21 echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) ALL ROUNDS DONE" >> $H/results/rounds.log