aitune.torch.tune_strategy.min_latency_strategy
aitune.torch.tune_strategy.min_latency_strategy
Min latency tune strategy.
Module Contents
Classes
API
Dataclass
Bases: BackendProfilingResult
Profiling result for min-latency selection.
latency
metric
Returns latency as the comparison metric.
selected_batch_size
Bases: ProfilingTuneStrategy
Searches and selects the backend with minimum latency at batch size 1.
TorchEager is profiled in _pre_tune as a latency baseline when baseline validation is enabled (not injected into the backends list). When validation is enabled, the strategy falls back to TorchEager when no user-provided backend beats it. When disabled, the best user-provided backend wins and the strategy raises if all user backends fail.
_description
_metric_label
_metric_unit
_title
_value_fmt
Profiles the backend at batch size 1 and returns latency.