pub fn choose_batch_mode(
ram_budget_mb: u64,
models_resident_mb: u64,
) -> BatchModeExpand description
Pick the execution mode: go vertical only when the estimated resident set fits the RAM budget; otherwise stay horizontal to bound peak memory.