Overview of Multi-variant Campaigns in Ziraph
A campaign in Ziraph is a declarative orchestration layer used to run N-variant by M-metric experiments. Instead of manually running traces, aggregating results, and comparing them for each variant, a campaign uses a TOML configuration file to define a grid of variants (e.g., different models, quantizations, or runtimes) and the metrics to be measured.
Key features include:
- Statistical Stability: Each variant is run K times to calculate the mean and sigma, determining if performance differences are statistically significant or merely run-to-run variance.
- Reproducibility: The TOML config serves as the experiment definition, allowing other developers to reproduce the exact same grid on different hardware.
- Composition: Campaigns orchestrate existing Ziraph primitives (
ziraph trace,ziraph aggregate, andziraph compare) without replacing their underlying measurement or reduction logic.