Download runner/serve-local.sh from PulseOS/budgetbench: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/datasets/PulseOS/budgetbench/resolve/main/runner/serve-local.sh
- Command line
-
hf download hf://datasets/PulseOS/budgetbench/runner/serve-local.sh
-
curl -L -o serve-local.sh https://huggingface.co/datasets/PulseOS/budgetbench/resolve/main/runner/serve-local.sh
1.94 kB
| # Run stock open models through BudgetBench, one llama-server at a time (as eval/run_ladder.sh did), with the | |
| # reference tools. Stop only the server this script started, by its PID. | |
| # budgetbench/runner/serve-local.sh public # every model in the list | |
| # ONLY=qwen3-8b PORT=8095 budgetbench/runner/serve-local.sh public | |
| # Each line: variant | GGUF file (under app/models) | extra env. Stock hybrid Qwen3 runs with thinking off. | |
| # Sources (SHA-256 checked against each repo's file on 2026-10-19): unsloth/Qwen3-0.6B-GGUF, Qwen/Qwen3-4B-GGUF, | |
| # unsloth/Qwen3-8B-GGUF, each its Q4_K_M file. | |
| set -u | |
| cd "$(dirname "$0")/../.." # pulse-local/ | |
| SPLIT=${1:-public} | |
| RUN_ID=${RUN_ID:-$(date +%Y-%m-%d)} | |
| M=${MODELS:-app/models} | |
| PORT=${PORT:-8093} | |
| while IFS='|' read -r name file extra; do | |
| [ -z "$name" ] && continue | |
| if [ -n "${ONLY:-}" ] && [[ ",$ONLY," != *",$name,"* ]]; then continue; fi | |
| [ -f "$M/$file" ] || { echo "skip $name: $M/$file missing"; continue; } | |
| mkdir -p budgetbench/results/logs | |
| # (the record of what served the row: the GGUF's SHA-256 and the llama.cpp build, beside the run) | |
| echo "$RUN_ID $SPLIT $name $(shasum -a 256 "$M/$file" | cut -d' ' -f1) $(llama-server --version 2>&1 | grep -m1 version)" >> budgetbench/results/logs/models.txt | |
| llama-server -m "$M/$file" --jinja -c 32768 -np 1 -ngl 99 --temp 0 --port "$PORT" > "budgetbench/results/logs/$name.server.log" 2>&1 & | |
| pid=$! | |
| for i in $(seq 1 180); do curl -s "127.0.0.1:$PORT/health" | grep -q ok && break; sleep 1; done | |
| env BB_BASE="http://127.0.0.1:$PORT/v1" BB_MODEL=local $extra \ | |
| node budgetbench/runner/run.mjs --system openai-compat --variant "$name" --split "$SPLIT" --run-id "$RUN_ID" --timeout-s 900 | |
| kill "$pid"; wait "$pid" 2>/dev/null | |
| done <<'LIST' | |
| qwen3-0.6b|hf_unsloth_Qwen3-0.6B-Q4_K_M.gguf|BB_NO_THINK=1 | |
| qwen3-4b|hf_Qwen_Qwen3-4B-Q4_K_M.gguf|BB_NO_THINK=1 | |
| qwen3-8b|Qwen3-8B-Q4_K_M.gguf|BB_NO_THINK=1 | |
| LIST | |