omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / OLLM-AB4-ROUNDS-4-11-20261122 / harness / passk.sh
| 1 | #!/bin/sh |
| 2 | # passk.sh TAG CK K TEMPMILLI CORPUS : DIAGNOSTIC ONLY (never a training source, never the headline). |
| 3 | # K sampled answers per frozen-benchmark prompt, each graded by `bench score`; reports tasks passing in |
| 4 | # at least one of K samples. Headline benchmark stays one greedy sample. |
| 5 | set -u |
| 6 | TAG="$1"; CK="$2"; K="$3"; TEMP="$4"; CORPUS="$5" |
| 7 | CAMP=/home/drakestapleton/work/ollm-helix-rlvr-20261121 |
| 8 | VLOOP=/home/drakestapleton/work/ollm-loop-20261121 |
| 9 | OLLM="$CAMP/bin/ollm"; BENCH="$CAMP/bin/bench"; OMC="$CAMP/bin/omc"; M="$VLOOP/data/omega4096.bin" |
| 10 | D="$CAMP/rounds/passk_$TAG"; rm -rf "$D"; mkdir -p "$D" |
| 11 | cat > "$D/one.sh" <<EOS |
| 12 | #!/bin/sh |
| 13 | P="\$1"; S="\$2"; id=\$(basename "\$P" | sed "s/^prompt-//") |
| 14 | "$OLLM" sample "$CK" "\$S" 128 $TEMP "\$(cat "\$P")" "$M" > "$D/s\$S/answer-\$id" |
| 15 | EOS |
| 16 | chmod +x "$D/one.sh" |
| 17 | for s in $(seq 1 "$K"); do |
| 18 | mkdir -p "$D/s$s" |
| 19 | ls "$CAMP/prompts"/prompt-* | nice -n 10 xargs -P 14 -I{} "$D/one.sh" {} "$s" |
| 20 | "$BENCH" score "$CAMP/data/tasks.om" "$CAMP/data/expect.txt" "$OMC" "$D/s$s" "$CORPUS" > "$D/score_s$s.txt" 2>&1 |
| 21 | echo "seed $s: $(grep '^SCORE' "$D/score_s$s.txt")" |
| 22 | done |
| 23 | cat "$D"/score_s*.txt | grep -E "^R .* pass$" | awk '{print $2, $3}' | sort | uniq -c | sort -k2 > "$D/pass_any.txt" |
| 24 | echo "PASSK $TAG K=$K temp=$TEMP tasks_passing_in_any_sample=$(wc -l < "$D/pass_any.txt")" |
| 25 | awk '{print $3}' "$D/pass_any.txt" | sort | uniq -c | tr "\n" " "; echo |
| 26 | echo done > "$D/DONE" |