interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / OLLM-AB4-ROUNDS-4-11-20261122 / harness / passk.sh

26 lines · 1413 bytes Raw Blame History
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.
5set -u
6TAG="$1"; CK="$2"; K="$3"; TEMP="$4"; CORPUS="$5"
7CAMP=/home/drakestapleton/work/ollm-helix-rlvr-20261121
8VLOOP=/home/drakestapleton/work/ollm-loop-20261121
9OLLM="$CAMP/bin/ollm"; BENCH="$CAMP/bin/bench"; OMC="$CAMP/bin/omc"; M="$VLOOP/data/omega4096.bin"
10D="$CAMP/rounds/passk_$TAG"; rm -rf "$D"; mkdir -p "$D"
11cat > "$D/one.sh" <<EOS
12#!/bin/sh
13P="\$1"; S="\$2"; id=\$(basename "\$P" | sed "s/^prompt-//")
14"$OLLM" sample "$CK" "\$S" 128 $TEMP "\$(cat "\$P")" "$M" > "$D/s\$S/answer-\$id"
15EOS
16chmod +x "$D/one.sh"
17for 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")"
22done
23cat "$D"/score_s*.txt | grep -E "^R .* pass$" | awk '{print $2, $3}' | sort | uniq -c | sort -k2 > "$D/pass_any.txt"
24echo "PASSK $TAG K=$K temp=$TEMP tasks_passing_in_any_sample=$(wc -l < "$D/pass_any.txt")"
25awk '{print $3}' "$D/pass_any.txt" | sort | uniq -c | tr "\n" " "; echo
26echo done > "$D/DONE"