In this article
Preserve the search boundary and recheck the selected artifact: intermediate fallback can relax goals, and file size is not peak memory.
An optimization search needs a declared boundary
Microsoft Olive composes model-conversion and optimization passes for a selected target. Its release history provides concrete capabilities: the project README dates NPU support in 0.9.0 to May 2025, while 0.9.2 release notes describe selective mixed precision, native GPTQ and blockwise RTN quantization for ONNX.
These features make a constrained search possible; they do not establish a measured winning pipeline for an unspecified GPU or NPU. The practical question is which evaluated artifact satisfies the declared quality and memory limits within the search budget. Calling the output “optimized” does not answer that question.
Pass order and stopping rules change the experiment
The current search strategy implementation supports joint and pass-by-pass execution. It exposes a sampler, output-model count, time and iteration limits, and stopping when goals are met. The configuration validator treats the latter global stopping options as joint-mode settings.
Consequently, a reproducible experiment must preserve more than a list of available passes. Record their order, search spaces, sampler configuration and actual termination reason. A run that stops at the first acceptable candidate answers a different question from one that spends its full budget exploring alternatives. Neither demonstrates a global optimum beyond the declared candidate space.
The implementation also distinguishes iteration count from suggested-sample count because invalid search points contribute differently. Report attempted, valid, evaluated and failed candidates separately rather than relabeling one counter as complete coverage.
A returned artifact can still miss the goals
A particularly important implementation detail occurs when stepping between search spaces. If sorting with goals finds no qualifying models, the strategy logs a warning and sorts again without applying goals. That fallback permits continued exploration; it is not evidence that the thresholds were satisfied.
For deployment, inspect the final artifact’s evaluation values and explicit acceptance conditions. Preserve intermediate failures too: an unsupported graph, conversion error or memory exhaustion is an outcome, not a missing row to erase. An artifact selected from an unsuccessful search can remain useful for diagnosis while being unsuitable for the intended device budget.
Peak memory needs a real evaluator
The current metric definitions list accuracy, latency, throughput, size on disk and custom metrics. Size on disk measures artifact storage; it must not stand in for peak host or device memory. A memory-constrained experiment therefore needs an appropriate custom measurement or separately enforced acceptance check with a documented boundary.
Measure conversion and compilation separately from steady inference. Specify whether the observation covers the child process, the complete process tree or device allocations, and preserve the workload that caused the peak. Otherwise, a compressed file can appear to meet a memory goal that was never actually observed.
Retest the selected pipeline on its target
Keep the checkpoint revision, tokenizer, calibration or evaluation inputs, pass configurations, exported files and execution-provider settings. The stack reproducibility guide explains why package names alone cannot preserve a result.
Finally, evaluate the chosen artifact on held-out representative tasks and the actual deployment hardware. Reusing the search set as the only quality evidence can reward configuration choices tailored to those examples. The quantization quality guide gives the broader acceptance framework. Olive automates candidate exploration; a defensible conclusion still names the explored space, measured constraints and untested conditions.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.