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 / score_round.sh
| 1 | #!/bin/sh |
| 2 | # score_round.sh TAG CK CORPUS_FOR_SEEN |
| 3 | # Frozen-benchmark score, same method as Rounds 2-3: one greedy sample per prompt (seed 42, 128 |
| 4 | # tokens, temp 0) with the CPU ollm, 16-way parallel, then `bench score`. CPU only, niced. |
| 5 | set -u |
| 6 | TAG="$1"; CK="$2"; CORPUS="$3" |
| 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" |
| 10 | MERGES="$VLOOP/data/omega4096.bin" |
| 11 | OUT="$CAMP/rounds/bench_$TAG" |
| 12 | rm -rf "$OUT"; mkdir -p "$OUT" |
| 13 | rm -f "$CAMP/rounds/DONE_SCORE_$TAG" |
| 14 | t0=$(date +%s) |
| 15 | ls "$CAMP/prompts"/prompt-* | nice -n 10 xargs -P 16 -I{} "$CAMP/samp_one.sh" "$OLLM" "$CK" "$MERGES" "$OUT" {} |
| 16 | echo "SAMPLED $TAG answers=$(ls "$OUT" | grep -c '^answer-') sec=$(( $(date +%s) - t0 ))" |
| 17 | "$BENCH" score "$CAMP/data/tasks.om" "$CAMP/data/expect.txt" "$OMC" "$OUT" "$CORPUS" > "$CAMP/rounds/score_$TAG.txt" 2>&1 |
| 18 | echo "SCORE_RC=$?" |
| 19 | grep -E "^F |^SCORE " "$CAMP/rounds/score_$TAG.txt" |
| 20 | grep -E " pass$| passcut$" "$CAMP/rounds/score_$TAG.txt" |
| 21 | echo "ANSWERS_SHA256=$(cat "$OUT"/answer-* | sha256sum | cut -c1-64) CK_SHA256=$(sha256sum "$CK" | cut -c1-64) OLLM_SHA256=$(sha256sum "$OLLM" | cut -c1-64)" |
| 22 | echo done > "$CAMP/rounds/DONE_SCORE_$TAG" |