Download research/problems/llm_sql/large/evaluate.sh from FrontierCS/Frontier-CS: direct link, hf CLI and curl.
- Browser
- Download file 896 Bytes
-
https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/refs%2Fpr%2F3/research/problems/llm_sql/large/evaluate.sh
- Command line
-
hf download hf://datasets/FrontierCS/Frontier-CS@refs/pr/3/research/problems/llm_sql/large/evaluate.sh
-
curl -L -o evaluate.sh https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/refs%2Fpr%2F3/research/problems/llm_sql/large/evaluate.sh
896 Bytes
| # Don't use set -euo pipefail so we can capture errors | |
| set -e | |
| # evaluate.sh wrapper for llm_sql_large | |
| PROBLEM_DIR=$(pwd) | |
| echo "[evaluate] Running LLM_SQL_LARGE evaluation..." >&2 | |
| echo "[evaluate] Current dir: $(pwd)" >&2 | |
| # Try to run the evaluator, capture output | |
| if ./run_evaluator.sh 2>&1 | tee /tmp/eval_output_llm_sql_large.log; then | |
| echo "[evaluate] run_evaluator succeeded" >&2 | |
| else | |
| echo "[evaluate] ERROR: run_evaluator.sh failed!" >&2 | |
| echo "[evaluate] Output:" >&2 | |
| cat /tmp/eval_output_llm_sql_large.log >&2 | |
| echo "-10000" | |
| exit 0 | |
| fi | |
| # Try to read results | |
| if [[ -f "results.json" ]]; then | |
| echo "[evaluate] Found results.json" >&2 | |
| cat results.json | python3 -c "import json, sys; print(json.load(sys.stdin).get('score', 50.0))" | |
| else | |
| echo "[evaluate] WARNING: results.json not found, returning mock score" >&2 | |
| echo "-10000" | |
| fi | |