Frozen feature tables for T1-T3, TF-IDF + logistic regression and DistilBERT baselines with grouped splits, T4/C4 question answering (zero-shot, few-shot, RAG, tool_only, agent), Qwen zero-shot T2, paired well-cluster bootstrap and the G2 coverage report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
||
# Reproducible M3–M4 stages, resumed with the same command.
|
||
set -euo pipefail
|
||
cd "$(dirname "$0")/.."
|
||
PY="${PY:-.venv/bin/python}"
|
||
export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 CUBLAS_WORKSPACE_CONFIG=:4096:8
|
||
export TOKENIZERS_PARALLELISM=false
|
||
run_python() {
|
||
exec "$PY" -c '
|
||
import os
|
||
import sys
|
||
from volve_dia.paths import load_env
|
||
load_env()
|
||
os.execv(sys.executable, [sys.executable, *sys.argv[1:]])
|
||
' "$@"
|
||
}
|
||
[[ -n "${RUNLOG_DIR:-}" ]] || run_python -m volve_dia.runlog -n "m34_${1:-prepare}" -- bash scripts/run_m34.sh "$@"
|
||
|
||
stage="${1:-prepare}"
|
||
if [[ $# -gt 0 ]]; then
|
||
shift
|
||
fi
|
||
case "$stage" in
|
||
prepare|classical|distilbert)
|
||
run_python scripts/11_m34_classify.py "$stage" "$@"
|
||
;;
|
||
qa)
|
||
run_python scripts/12_m34_qa.py "$@"
|
||
;;
|
||
t2-llm)
|
||
run_python scripts/14_m34_t2_llm.py "$@"
|
||
;;
|
||
qa-local)
|
||
env -u RUNLOG_DIR bash scripts/run_m34.sh qa --model qwen "$@"
|
||
env -u RUNLOG_DIR bash scripts/run_m34.sh qa --model llama "$@"
|
||
env -u RUNLOG_DIR bash scripts/run_m34.sh report
|
||
;;
|
||
report)
|
||
run_python scripts/13_m34_report.py "$@"
|
||
;;
|
||
*)
|
||
echo "Usage: scripts/run_m34.sh {prepare|classical|distilbert|qa|qa-local|t2-llm|report} [options]" >&2
|
||
exit 2
|
||
;;
|
||
esac
|