Skip to content

Commit 0dba57a

Browse files
fix: suppress interactive menu in sub-process invocations
When SUITE_OPT is set (automated matrix mode), skip all menu echoes and the read prompt entirely. Child processes now run silently with only test-relevant output.
1 parent 2d537d6 commit 0dba57a

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

run_benchmark.sh

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,29 @@ print_server_log() {
8888

8989
echo "=============================================="
9090
export METAL_LIBRARY_PATH="$(pwd)/.build/arm64-apple-macosx/release"
91-
echo " Aegis-AI MLX Profiling Benchmark Suite "
92-
echo "=============================================="
93-
echo ""
9491

95-
echo "Select Action:"
96-
echo "0) Test 0: Run Full Automated Matrix (Offline Evaluation)"
97-
echo "1) Test 1: Automated Context & Memory Profile (TPS & RAM matrix)"
98-
echo "2) Test 2: Prompt Cache & Sliding Window Regression Test"
99-
echo "3) Test 3: HomeSec Benchmark (LLM Only)"
100-
echo "4) Test 4: VLM End-to-End Evaluation"
101-
echo "5) Test 5: ALM Audio End-to-End Evaluation"
102-
echo "6) Test 6: Omni End-to-End Evaluation"
103-
echo "7) Model Maintain List and Delete"
104-
echo "8) Test 8: Tool-Call Degeneration Regression (Gemma-4 vague-query bug)"
105-
echo "9) Test 9: Quantized KV Cache Regression (Gemma-4 issue #71 — native kv_bits)"
106-
echo "10) Test 10: SSD + Draft Model Memory Regression (Issue #72 — auto-cap + RAM guard)"
107-
echo "11) Test 11: DFlash Benchmark (Qwen3-Coder-Next-4bit)"
108-
echo "12) Test 12: DFlash Benchmark (Qwen3.6-35B-A3B-4bit)"
109-
echo "q) Quit"
11092
if [ -n "${SUITE_OPT:-}" ]; then
93+
# Sub-process invocation from automated matrix — skip interactive menu
11194
suite_opt="$SUITE_OPT"
11295
else
96+
echo " Aegis-AI MLX Profiling Benchmark Suite "
97+
echo "=============================================="
98+
echo ""
99+
echo "Select Action:"
100+
echo "0) Test 0: Run Full Automated Matrix (Offline Evaluation)"
101+
echo "1) Test 1: Automated Context & Memory Profile (TPS & RAM matrix)"
102+
echo "2) Test 2: Prompt Cache & Sliding Window Regression Test"
103+
echo "3) Test 3: HomeSec Benchmark (LLM Only)"
104+
echo "4) Test 4: VLM End-to-End Evaluation"
105+
echo "5) Test 5: ALM Audio End-to-End Evaluation"
106+
echo "6) Test 6: Omni End-to-End Evaluation"
107+
echo "7) Model Maintain List and Delete"
108+
echo "8) Test 8: Tool-Call Degeneration Regression (Gemma-4 vague-query bug)"
109+
echo "9) Test 9: Quantized KV Cache Regression (Gemma-4 issue #71 — native kv_bits)"
110+
echo "10) Test 10: SSD + Draft Model Memory Regression (Issue #72 — auto-cap + RAM guard)"
111+
echo "11) Test 11: DFlash Benchmark (Qwen3-Coder-Next-4bit)"
112+
echo "12) Test 12: DFlash Benchmark (Qwen3.6-35B-A3B-4bit)"
113+
echo "q) Quit"
113114
read -p "Option (0-12/q): " suite_opt
114115
fi
115116

0 commit comments

Comments
 (0)