Skip to content

Algorithms#

Algorithms are the search strategies determining what configurations to evaluate next. In ScaleFM, we provide a few pre-implemented algorithms for scaling studies and offer the possibility to implement custom algorithms. This chapter gives an overview of the algorithms available in ScaleFM.

✅ = supported/necessary, ❌ = not supported, ✔️* = optional, click for details

Algorithm Priors Model-based Scaling-aware
Grid Search ❌ ❌ ❌
Random Search ✔️* ❌ ❌
Complex Random Search ❌ ❌ ❌
Bayesian Optimization ❌ ✅ ✔️*
CARBS ✔️* ✅ ✅
Chinchilla ❌ ❌ ✅

Scaling-aware optimizers use the cost_estimator of the run, see scaling optimizers.

Priors#

A prior is a value of a parameter that is expected to work well, with a prior_confidence. We discuss how priors can be included in your search space here. random_search samples around them with use_priors=True, and carbs starts its search from them. The other optimizers do not use them.