Download tools/deep16_final.sh from RightNowAI/RightNow-Mini: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/tools/deep16_final.sh
- Command line
-
hf download hf://RightNowAI/RightNow-Mini/tools/deep16_final.sh
-
curl -L -o deep16_final.sh https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/tools/deep16_final.sh
1.22 kB
| # When attempts FROM to TO are complete: choose with N=TO, score, and score those attempts alone. | |
| # PORT=9006 bash tools/deep16_final.sh N=16: both selection rules (a live engine on PORT votes) | |
| # FROM=17 TO=32 RULES=A bash tools/deep16_final.sh N=32: rule A only (no model call) | |
| set -u | |
| R=/data/train/mini | |
| PORT=${PORT:-9006}; FROM=${FROM:-9}; TO=${TO:-16}; RULES=${RULES:-A R} | |
| log() { echo "$(date -u +%FT%TZ) [final N=$TO] $*"; } | |
| cd $R/src | |
| done_all() { for k in $(seq $FROM $TO); do grep -q "agent done" $R/results/deep/att-$k/meta.txt 2>/dev/null && [ -s $R/results/deep/att-$k/preds.json ] || return 1; done; } | |
| until done_all; do sleep 20; done | |
| log "attempts $FROM to $TO complete" | |
| RULES="$RULES" NS="$TO" PORT=$PORT bash tools/selectors_run.sh & | |
| n=0 | |
| for k in $(seq $FROM $TO); do | |
| ( LABEL=deep-att-$k OUT=$R/results/deep/att-$k EW=6 bash eval/score.sh > $R/logs/deep-score-$k.log 2>&1 ) & | |
| n=$((n + 1)); [ $((n % 4)) = 0 ] && wait | |
| done | |
| wait | |
| log "single attempts $FROM to $TO resolved: $(for k in $(seq $FROM $TO); do python3 -c "import json;print(json.load(open('$R/results/deep/att-$k/summary.json'))['resolved'])" 2>/dev/null; done | tr '\n' ' ')" | |
| log "done" | |