Overview
This content tree contains the core components and utilities of ScaleFM, designed to simplify and enhance the process of running scaling studies. Below is an overview of the files and their purposes:
scalefm.api: The main functions of a scaling study:scalefm.acquire()samples configurations under a cost budget and trains them with yourevaluate_pipeline, or only samples them withis_async=True;scalefm.save_pipeline_results()reports the result of a configuration you trained yourself, e.g. in a Slurm job;scalefm.predict()fits the scaling law and predicts at larger costs;
scalefm.prediction: The predictors behindscalefm.predict(): the power law, Chinchilla and the GP posterior.scalefm.optimizers:scalefm.algorithms: Contains the optimization algorithms, such as random search, grid search, Bayesian optimization, CARBS and Chinchilla, for sampling new trials.scalefm.AskAndTell: An alternative toscalefm.acquirethat allows full control of the evaluation loop. This is useful when you don’t want to use ScaleFM’s runtime but still want to benefit from its optimizers and state management.
scalefm.runtime: Implements theWorker, offering functions to create a worker, sample new trials, and evaluate them.scalefm.state: Manages the state of workers, trials, and optimizers, ensuring reproducibility and continuity.scalefm.status: Provides functions to retrieve the status of a run and export it to CSV files for analysis, and thesummaryfolder with the scaling plots.scalefm.plot: The scaling plots of a run, andtbloggerto log your own metrics to TensorBoard.