interplane.Get Omega
Read in your language

gpu-head-to-head

aien-dev/gpu-head-to-head

Brought by drakestapleton

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)
4set -u
5H=/home/drakestapleton/handoffs/H2H9B
6mkdir -p $H/results
7ORDER=$(python3 -c "
8import random, sys
9arms = sys.argv[1:]; r = random.Random(9)
10for k in (1, 2, 3):
11 a = list(arms); r.shuffle(a); print('R%d %s' % (k, ' '.join(a)))" "$@")
12echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) arms: $* ; order:" | tee -a $H/results/rounds.log
13echo "$ORDER" | tee -a $H/results/rounds.log
14while 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
20done <<< "$ORDER"
21echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) ALL ROUNDS DONE" >> $H/results/rounds.log