Spaces:
Runtime error
Runtime error
| set -euo pipefail | |
| # Run a reproducible throughput gate. | |
| # Default gate: 50k TPS steady-state. | |
| # | |
| # Usage: | |
| # bash scripts/run_tps_gate.sh [config] [seconds] [min_tps] | |
| # Example: | |
| # bash scripts/run_tps_gate.sh baseline 300 50000 | |
| CONFIG="${1:-baseline}" | |
| SECONDS_BUDGET="${2:-300}" | |
| MIN_TPS="${3:-50000}" | |
| echo "[tps-gate] config=$CONFIG seconds=$SECONDS_BUDGET min_tps=$MIN_TPS" | |
| python scripts/benchmark_hyena_stack.py \ | |
| --config "$CONFIG" \ | |
| --time "$SECONDS_BUDGET" \ | |
| --min-tps "$MIN_TPS" | |
| echo "[tps-gate] PASS" | |