@@ -11,15 +11,17 @@ set -euo pipefail
1111API_HOST=" simulator-llm.apps.summit-gpu.octo-emerging.redhataicoe.com"
1212MODEL_ID=" simulator-model"
1313INFINITE=false
14+ NO_SLEEP=false
1415
1516usage () {
1617 cat << EOF
17- Usage: $( basename " $0 " ) [--host <hostname>] [-m|--model <model-id>] [-i|--infinite] [--help]
18+ Usage: $( basename " $0 " ) [--host <hostname>] [-m|--model <model-id>] [-i|--infinite] [--no-sleep] [-- help]
1819
1920Options
2021 -H, --host <hostname> API host (default: $API_HOST )
2122 -m, --model <id> Override model ID (default: $MODEL_ID )
2223 -i, --infinite Run tests in a loop until interrupted (max ~10 min)
24+ -n, --no-sleep Skip sleep between iterations (infinite mode only)
2325 -h, --help Show this help and exit
2426EOF
2527}
@@ -30,6 +32,7 @@ while [[ $# -gt 0 ]]; do
3032 -H|--host) API_HOST=" $2 " ; shift 2 ;;
3133 -m|--model) MODEL_ID=" $2 " ; shift 2 ;;
3234 -i|--infinite) INFINITE=true; shift ;;
35+ -n|--no-sleep) NO_SLEEP=true; shift ;;
3336 -h|--help) usage; exit 0 ;;
3437 * ) echo " ❌ Unknown option: $1 " ; usage; exit 1 ;;
3538 esac
@@ -40,6 +43,7 @@ BASE_URL="http://${API_HOST}/v1/chat/completions"
4043echo " 📡 Host : $API_HOST "
4144echo " 🤖 Model ID: $MODEL_ID "
4245echo " 🔁 Infinite mode: $INFINITE "
46+ echo " 😴 No sleep: $NO_SLEEP "
4347echo
4448
4549# #######################
@@ -97,8 +101,10 @@ if [ "$INFINITE" = true ]; then
97101 echo " 🛑 Reached ~10 minutes, stopping."
98102 break
99103 fi
100- echo " ⏳ Sleeping 5s before next iteration..."
101- sleep 5
104+ if [ " $NO_SLEEP " = false ]; then
105+ echo " ⏳ Sleeping 5s before next iteration..."
106+ sleep 5
107+ fi
102108 done
103109else
104110 run_tests
0 commit comments