File size: 859 Bytes
6071ec5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env bash
# Letters-vs-cloze format check with the CodeSOTA scorer (slayerlabs/benchmarks-fabryka-ai @ 2f4c0491,
# research/common/hipoteza_formatu.py; one BOS, lm-eval 0.4.9.1 pair encoding, full test splits).
# Closest public counterpart of Arek's Belebele/MMLU/ARC letters / cloze table (his instrument e7b20cd8 is not in the repo).
# bash bench_format.sh <package dir from bench_suite.sh> <label> [gpu]
set -euo pipefail
PKG=$1; LABEL=$2; GPU=${3:-0}
R=/workspace/benchrepo/research
OUT=/workspace/slayer1b/results/format/$LABEL
mkdir -p "$OUT"
cd "$R"
CUDA_VISIBLE_DEVICES=$GPU .venv-eval/bin/python common/hipoteza_formatu.py licz --model "$PKG" --etykieta "$LABEL" --device cuda --batch 16 \
--zadania belebele_mc,belebele_cloze,arc_c_mc,arc_c_mc_przes,arc_c_cloze,mmlu_mc,mmlu_cloze --wyjscie "$OUT" > "$OUT.log" 2>&1
echo "done $LABEL"
|