MVP runtime and acceptance contract
CLI
# Run or validate
vllm-opt -c experiment.yaml
vllm-opt validate -c experiment.yaml
# Display stored commands without executing them
vllm-opt reproduce --run runs/NAME/RUN_ID --trial trial-0001
# Export only the stored vLLM command
vllm-opt export --run runs/NAME/RUN_ID --trial trial-0001
# Regenerate or rescore stored evidence without running a benchmark
vllm-opt report --run runs/NAME/RUN_ID
vllm-opt reclassify --run runs/NAME/RUN_ID --max-failure-percentage 2
# Retry selected configurations in a new linked run
vllm-opt retry --run runs/NAME/RUN_ID --trial trial-0001 --trial trial-0004
reproduce never executes a command. Redacted environment and CLI argument
values must be supplied manually. Retry verifies the source result, trial directories,
manifest identities, and available artifact checksums before starting.
Lifecycle
For each attempt, TrialManager runs focused workers in order:
- Build the vLLM command and environment.
- Start vLLM in an owned process group and capture output.
- Poll the configured HTTP health endpoint while watching for early exit.
- Run every benchmark and repeat sequentially.
- Parse selected-backend JSON into the common benchmark result model.
- Clean up started workers in reverse order.
A trial failure does not stop later trials. Ctrl+C marks the active trial and
run interrupted, cleans up owned processes, and returns exit code 130.
Persistence
runs/EXPERIMENT/RUN_ID/
├── result.json
├── results.csv
├── report.html
├── study.db # Random and TPE only
└── trials/
└── trial-0001/
├── manifest.json
├── result.json
└── attempts/001/
├── vllm.log
└── repeats/001/BENCHMARK/
├── benchmark.log
└── results.json
result.json is created before execution and updated after every trial. Trial
manifests contain the exact commands with secret-like values redacted,
software/GPU metadata, startup duration, source linkage, and checksums for
generated artifacts.
Configured environment or CLI argument names containing TOKEN, PASSWORD,
PASSWD, SECRET, API_KEY, or PRIVATE_KEY are stored as <redacted> in
manifests, run results, CSV, HTML, and terminal summaries. The complete
inherited process environment is never persisted.
Reports
The static HTML report shows the best observed result, tuned delta from baseline, changed settings, reproduction command, trial history, per-benchmark elapsed time and latency statistics, metric definitions, exploratory parameter associations, repeat confidence evidence, and failure summaries. Every trial remains visible with its average benchmark duration; full recorded trial data and supporting analysis are expandable. See the reports guide for the current layout and calculations.
Effect and importance views are observational, not causal. Recommendation confidence depends on repeat coverage, drift, and overlap; parameter-importance views separately flag limited numbers of successful trials.
MVP acceptance
The MVP is accepted when private tests, wheel installation, CLI validation, one real baseline/TPE experiment, one real verbose experiment, cleanup checks, and artifact/report inspection all pass in the supported WSL/Linux playground.