mlos-core


Namemlos-core JSON
Version 0.6.1 PyPI version JSON
download
home_pageNone
SummaryMLOS Core Python interface for parameter optimization.
upload_time2024-08-16 18:15:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords autotuning optimization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mlos-core

This [directory](https://github.com/microsoft/MLOS/tree/main/mlos_core/./) contains the code for the `mlos-core` optimizer package.

It's available for `pip install` via the pypi repository at [mlos-core](https://pypi.org/project/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`](https://github.com/microsoft/MLOS/tree/main/mlos_core/../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.

1. 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.
2. Sampling to warm-start optimization in a high dimensional search space
3. 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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mlos-core",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Microsoft <mlos-maintainers@service.microsoft.com>",
    "keywords": "autotuning, optimization",
    "author": null,
    "author_email": "Microsoft <mlos-maintainers@service.microsoft.com>",
    "download_url": "https://files.pythonhosted.org/packages/80/ac/b702be38f8cd937948cf35661fa84379ab2536ea7838f19222e0ca56b581/mlos_core-0.6.1.tar.gz",
    "platform": null,
    "description": "# mlos-core\n\nThis [directory](https://github.com/microsoft/MLOS/tree/main/mlos_core/./) contains the code for the `mlos-core` optimizer package.\n\nIt's available for `pip install` via the pypi repository at [mlos-core](https://pypi.org/project/mlos-core/).\n\n## Description\n\n`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`.\n\nThese can be evaluated by [`mlos-bench`](https://github.com/microsoft/MLOS/tree/main/mlos_core/../mlos_bench/), generating and tracking experiment results (proposed parameters, benchmark results & telemetry) to update the optimization loop, or used independently.\n\n## Features\n\nSince 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.\n\n1. Reduce the search space by identifying a promising set of tunable parameters\n    - Map out the configuration search space: Automatically track and manage the discovery of new Linux kernel parameters and their default values across versions.\n    Filter out non-tunable parameters (e.g., not writable) and track which kernel parameters exist for a given kernel version.\n    - Leverage parameter knowledge for optimization: Information on ranges, sampling intervals, parameter correlations, workload type sensitivities for tunable parameters are tracked and currently manually curated.\n    In the future, this can be automatically maintained by scraping documentation pages on kernel parameters.\n    - 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.\n2. Sampling to warm-start optimization in a high dimensional search space\n3. Produce optimal configurations through Bayesian optimization\n    - Support for various optimizer algorithms (default Bayesian optimizer, Flaml, SMAC, and random for baseline comparison), that handle multiple types of constraints.\n    This includes cost-aware optimization, that considers experiment costs given current tunable parameters.\n    - Integrated with `mlos-bench`, proposed configurations are logged and evaluated.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "MLOS Core Python interface for parameter optimization.",
    "version": "0.6.1",
    "project_urls": {
        "Documentation": "https://microsoft.github.io/MLOS/source_tree_docs/mlos_core/",
        "Issues": "https://github.com/microsoft/MLOS/issues",
        "Package Source": "https://github.com/microsoft/MLOS/tree/main/mlos_core/",
        "Repository": "https://github.com/microsoft/MLOS/"
    },
    "split_keywords": [
        "autotuning",
        " optimization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5a96bb37030938a604e5a51b61c79b113bf35ba1967dd9ef095d573d05fd499",
                "md5": "bbcccc1ef505b9a4545b4868db456a61",
                "sha256": "d81b48596d633a37ee75b21eff8b4a2a6544289f0c46c47ab561f245e8b909dd"
            },
            "downloads": -1,
            "filename": "mlos_core-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bbcccc1ef505b9a4545b4868db456a61",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 32083,
            "upload_time": "2024-08-16T18:15:49",
            "upload_time_iso_8601": "2024-08-16T18:15:49.549681Z",
            "url": "https://files.pythonhosted.org/packages/c5/a9/6bb37030938a604e5a51b61c79b113bf35ba1967dd9ef095d573d05fd499/mlos_core-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "80acb702be38f8cd937948cf35661fa84379ab2536ea7838f19222e0ca56b581",
                "md5": "c44e2951c081fa3ce0bfcb251a9a7fd7",
                "sha256": "6c8e0bf75e48fa7db0d9ded5086ad30e658b97ec9d83874efd88a75b5c7e4f0f"
            },
            "downloads": -1,
            "filename": "mlos_core-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c44e2951c081fa3ce0bfcb251a9a7fd7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 27076,
            "upload_time": "2024-08-16T18:15:53",
            "upload_time_iso_8601": "2024-08-16T18:15:53.370220Z",
            "url": "https://files.pythonhosted.org/packages/80/ac/b702be38f8cd937948cf35661fa84379ab2536ea7838f19222e0ca56b581/mlos_core-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-16 18:15:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "microsoft",
    "github_project": "MLOS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mlos-core"
}
        
Elapsed time: 1.69635s