MLOS Core Python interface for parameter optimization.
Project description
mlos-core
This directory contains the code for the mlos-core
optimizer package.
It's available for pip install
via the pypi repository at mlos-core.
Description
mlos-core
is an optimizer package, wrapping other libraries like FLAML and SMAC to use techniques like Bayesian optimization and others to identify & sample tunable configuration parameters and propose optimal parameter values with a consistent API: suggest
and register
.
These can be evaluated by mlos-bench
, generating and tracking experiment results (proposed parameters, benchmark results & telemetry) to update the optimization loop, or used independently.
Features
Since the tunable parameter search space is often extremely large, mlos-core
automates the following steps to efficiently generate optimal task-specific kernel and application configurations.
- Reduce the search space by identifying a promising set of tunable parameters
- Map out the configuration search space: Automatically track and manage the discovery of new Linux kernel parameters and their default values across versions. Filter out non-tunable parameters (e.g., not writable) and track which kernel parameters exist for a given kernel version.
- Leverage parameter knowledge for optimization: Information on ranges, sampling intervals, parameter correlations, workload type sensitivities for tunable parameters are tracked and currently manually curated. In the future, this can be automatically maintained by scraping documentation pages on kernel parameters.
- Tailored to application: Consider prior knowledge of the parameter's impact & an application's workload profile (e.g. network heavy, disk heavy, CPU bound, multi-threaded, latency sensitive, throughput oriented, etc.) to identify likely impactful candidates of tunable parameters, specific to a particular application.
- Sampling to warm-start optimization in a high dimensional search space
- Produce optimal configurations through Bayesian optimization
- Support for various optimizer algorithms (default Bayesian optimizer, Flaml, SMAC, and random for baseline comparison), that handle multiple types of constraints. This includes cost-aware optimization, that considers experiment costs given current tunable parameters.
- Integrated with
mlos-bench
, proposed configurations are logged and evaluated.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mlos-core-0.5.0.tar.gz
.
File metadata
- Download URL: mlos-core-0.5.0.tar.gz
- Upload date:
- Size: 119.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfea5c40533fc233616c1007393aa05d798f757094acb989820b760e2030420c |
|
MD5 | 3a8ec2d3738d22402dcb3cefcfc57021 |
|
BLAKE2b-256 | 55fe4c8c73fa1b27cbb1d0aa1a7293139c94f7ccb9ade45b7dc92f594c1a4a80 |
Provenance
File details
Details for the file mlos_core-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: mlos_core-0.5.0-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339a47e660fcff4ba85ad79028d1f5bfb1b636ed2b6a98923e758eb1903ef6e7 |
|
MD5 | d15239cf4a7fe43d3519fb819dd8f106 |
|
BLAKE2b-256 | d1a42d6bdb8ec4408bb4087b733837db596c71f54306e1b4227cad22e1398b96 |