File size: 1,419 Bytes
6c4c2ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
MODEL="${1:?usage: bash run_suite.sh MODEL SUITE_DIR OUTPUT_DIR}"
SUITE="${2:?suite directory required}"
OUTPUT="${3:?output directory required}"
[[ "$MODEL" = /* ]] || MODEL="$PWD/$MODEL"
[[ "$SUITE" = /* ]] || SUITE="$PWD/$SUITE"
[[ "$OUTPUT" = /* ]] || OUTPUT="$PWD/$OUTPUT"
cd "$ROOT"
export CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES-0}"
[[ -d "$MODEL" ]] || { printf 'Model directory not found: %s\n' "$MODEL" >&2; exit 1; }
[[ -d "$SUITE" ]] || { printf 'Suite directory not found: %s\n' "$SUITE" >&2; exit 1; }
unset PYTHONHOME PYTHONPATH LD_LIBRARY_PATH
export VLLM_NO_USAGE_STATS=1 TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=4
if [[ -e "$OUTPUT/results.jsonl" ]]; then
printf 'Use a fresh output directory; results.jsonl already exists.\n' >&2
exit 1
fi
mkdir -p "$OUTPUT"
source ./runtime_env.sh
uv run --frozen --managed-python python selfcheck.py --output "$OUTPUT"
# The official pipeline verifies suite hashes and applies edition filtering before inference.
uv run --frozen --managed-python python -m decision_index pipeline \
--engine decision_vllm_engine:DecisionVllmEngine \
--option "model=$MODEL" --option "codebook=$ROOT/choice-codebook.json" \
--option max_model_len=32768 --option max_num_seqs=64 --option "audit_dir=$OUTPUT" \
--suite-dir "$SUITE" --out "$OUTPUT" --edition 0.3 --compact
|