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
Note: detailed documentation can be found [here](/docs/deep-dive/optimizers/miprov2.md). `MIPROv2` is the latest extension of `MIPRO` which includes updates such as (1) improvements to instruction proposal and (2) more efficient search with minibatching.
393
393
394
394
#### Optimizing with MIPROv2
395
+
This shows how to perform an easy out-of-the box run with `auto=light`, which configures many hyperparameters for you and performs a light optimization run. You can alternatively set `auto=medium` or `auto=heavy` to perform longer optimization runs. The more detailed `MIPROv2` documentation [here](/docs/deep-dive/optimizers/miprov2.md) also provides more information about how to set hyperparameters by hand.
395
396
```python
396
397
# Import the optimizer
397
398
from dspy.teleprompt import MIPROv2
398
399
399
400
# Initialize optimizer
400
401
teleprompter = MIPROv2(
401
402
metric=gsm8k_metric,
402
-
num_candidates=7,
403
-
init_temperature=0.5,
404
-
verbose=False,
405
-
num_threads=4,
403
+
auto="light", # Can choose between light, medium, and heavy optimization runs
0 commit comments