You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config_search.md
+85-1Lines changed: 85 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,8 @@
1
1
<!--
2
+
SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+
SPDX-License-Identifier: Apache-2.0
4
+
-->
5
+
<!--
2
6
Copyright (c) 2020-2024, NVIDIA CORPORATION. All rights reserved.
3
7
4
8
Licensed under the Apache License, Version 2.0 (the "License");
@@ -240,7 +244,8 @@ manual sweep:
240
244
241
245
_This mode has the following limitations:_
242
246
243
-
- If model config parameters are specified, they can contain only one possible combination of parameters
247
+
- Top-level models can contain only one possible combination of model config parameters
248
+
- Composing models (ensemble/BLS sub-models) can specify parameter ranges if they follow specific patterns (see [Ensemble Composing Model Parameter Ranges](#ensemble-composing-model-parameter-ranges))
244
249
245
250
This mode uses a hill climbing algorithm to search the configuration space, looking for
246
251
the maximal objective value within the specified constraints. In the majority of cases
@@ -262,6 +267,77 @@ profile_models:
262
267
263
268
---
264
269
270
+
### **Ensemble Composing Model Parameter Ranges**
271
+
272
+
When profiling ensemble or BLS models in Quick search mode, composing models (sub-models) can specify parameter ranges for `instance_group` count. This enables optimization of composing models with different resource requirements, such as:
273
+
274
+
- CPU-bound models (tokenizers, preprocessors) that may benefit from higher instance counts
275
+
- GPU-bound models (inference models, embeddings) with limited GPU memory
276
+
277
+
**Supported Instance Count Patterns:**
278
+
279
+
Model Analyzer supports two types of instance count sequences that map to Quick search's coordinate system:
280
+
281
+
1. **Powers of 2**: `[1, 2, 4, 8, 16, 32]`or subsets like `[2, 4, 8]`
- The tokenizer (CPU model) searches instance counts from 1 to 32
335
+
- The inference model (GPU model) searches instance counts from 1 to 8
336
+
- Quick search explores both dimensions in parallel to find the optimal combination
337
+
- The ensemble model itself has fixed parameters (single combination)
338
+
339
+
---
340
+
265
341
### **Limiting Batch Size, Instance Group, and Client Concurrency**
266
342
267
343
Using the `--run-config-search-<min/max>...` config options you have the ability to clamp the algorithm's upper or lower bounds for the model's batch size and instance group count, as well as the client's request concurrency.
@@ -398,6 +474,10 @@ _This mode has the following limitations:_
398
474
399
475
Ensemble models can be optimized using the Quick Search mode's hill climbing algorithm to search the composing models' configuration spaces in parallel, looking for the maximal objective value within the specified constraints. Model Analyzer has observed positive outcomes towards finding the maximum objective value; with runtimes under one hour (compared to the days it would take a brute force run to complete) for ensembles that contain up to four composing models.
400
476
477
+
**Composing Model Parameter Ranges:**
478
+
479
+
Composing models within ensembles can specify instance count ranges to optimize models with different resource requirements (e.g., CPU tokenizers vs GPU inference models). See [Ensemble Composing Model Parameter Ranges](#ensemble-composing-model-parameter-ranges) for details on supported patterns and configuration examples.
480
+
401
481
After Model Analyzer has found the best config(s), it will then sweep the top-N configurations found (specified by `--num-configs-per-model`) over the concurrency range before generation of the summary reports.
402
482
403
483
---
@@ -412,6 +492,10 @@ _This mode has the following limitations:_
412
492
413
493
BLS models can be optimized using the Quick Search mode's hill climbing algorithm to search the BLS composing models' configuration spaces, as well as the BLS model's instance count, in parallel, looking for the maximal objective value within the specified constraints. Model Analyzer has observed positive outcomes towards finding the maximum objective value; with runtimes under one hour (compared to the days it would take a brute force run to complete) for BLS models that contain up to four composing models.
414
494
495
+
**Composing Model Parameter Ranges:**
496
+
497
+
BLS composing models can specify instance count ranges to optimize models with different resource requirements. Models are identified using the `bls_composing_models` configuration parameter. See [Ensemble Composing Model Parameter Ranges](#ensemble-composing-model-parameter-ranges) for details on supported patterns and configuration examples.
498
+
415
499
After Model Analyzer has found the best config(s), it will then sweep the top-N configurations found (specified by `--num-configs-per-model`) over the concurrency range before generation of the summary reports.
0 commit comments