Accelerate your Neural Architecture Search (NAS) through fast, reproducible and modular research.
Перейти к файлу
Gustavo Rosa 34074adb36 chore(root): Removes multiple references of v1.0.0 to prevent excessive changes. 2023-01-30 09:25:55 -03:00
.github chore(root): Introduces a better setup.py with extras for additional functionalities. 2022-12-27 09:15:56 -03:00
.vscode fix(.vscode): Fixes path of debugging scripts. 2023-01-27 11:58:29 -03:00
archai fix(archai): Fixes functions that call get_full_path with create_folder argument. 2023-01-27 16:22:48 -03:00
confs All-No_pareto functional again 2023-01-21 02:41:49 -08:00
devops Fixing workflow bugs 2023-01-05 06:10:14 -08:00
docker chore(root): Removes multiple references of v1.0.0 to prevent excessive changes. 2023-01-30 09:25:55 -03:00
docs chore(root): Removes multiple references of v1.0.0 to prevent excessive changes. 2023-01-30 09:25:55 -03:00
research chore(research): Renames harness to lm_eval_harness research project. 2023-01-24 16:02:58 -03:00
scripts fix(archai): Fixes functions that call get_full_path with create_folder argument. 2023-01-27 16:22:48 -03:00
tasks/text_generation chore(archai): Moves discrete search-related base classes to its folder. 2023-01-27 15:52:55 -03:00
tests fix(tests): Temporarily disables tests that use SegmentationDagSearchSpace due to a bug in Tensorwatch. 2023-01-27 16:18:30 -03:00
.amltignore refactor(ds): deletes extra content from ds branch 2022-12-16 18:35:04 -03:00
.gitattributes Update .gitattributes 2023-01-02 13:23:23 -03:00
.gitignore chore(root): Adds .db extension to .gitignore. 2023-01-20 16:30:21 -03:00
AUTHORS.md chore(archai): Adds updated files. 2022-12-16 16:26:45 -03:00
CODE_OF_CONDUCT.md Updated code of conduct, licence, security.md 2020-05-18 03:23:58 -07:00
CONTRIBUTING.md initial 2020-05-18 03:11:07 -07:00
LICENSE chore(archai): Adds updated files. 2022-12-16 16:26:45 -03:00
NOTICE.md Updated notice of cyclic cosine 2022-12-16 16:31:48 -03:00
README.md fix(root): Fixes authors name on readme and docs. 2023-01-27 08:40:07 -03:00
SECURITY.md chore(archai): Adds updated files. 2022-12-16 16:26:45 -03:00
pyproject.toml chore(root): Bumps version for release. 2022-12-16 16:51:13 -03:00
pytest.ini chore(tests): Adds nlp.objectives tests. 2022-12-16 18:42:03 -03:00
setup.cfg chore(scripts): Moves scripts to their corresponding folders. 2023-01-24 14:38:22 -03:00
setup.py fix(root): Adds opencv-python as a CV package dependency. 2023-01-17 11:18:35 -03:00

README.md

Archai logo

Archai accelerates your Neural Architecture Search (NAS) through fast, reproducible and modular research, enabling the generation of efficient deep networks for various applications.

Release version Open issues Contributors PyPI downloads License

Installation

Archai can be installed through various methods, however, it is recommended to utilize a virtual environment such as conda or pyenv for optimal results.

To install Archai via PyPI, the following command can be executed:

pip install archai

Archai requires Python 3.7+ and PyTorch 1.7.0+ to function properly.

For further information, please consult the installation guide.

Quickstart

In this quickstart example, we will apply Archai in Natural Language Processing through the TransformerFlex search space, which performs NAS through a set of Transformers' configurations and finds the optimal Pareto-frontier according to a set of objectives.

from archai.discrete_search.evaluators.nlp.parameters import NonEmbeddingParamsProxy
from archai.discrete_search.evaluators.nlp.transformer_flex_latency import TransformerFlexOnnxLatency
from archai.discrete_search.evaluators.nlp.transformer_flex_memory import TransformerFlexOnnxMemory
from archai.discrete_search.search_spaces.nlp.transformer_flex.search_space import TransformerFlexSearchSpace

space = TransformerFlexSearchSpace("codegen")
objectives = {
   "non_embedding_params": NonEmbeddingParamsProxy(),
   "onnx_latency": TransformerFlexOnnxLatency(space),
   "onnx_memory": TransformerFlexOnnxMemory(space),
}

After we have initialized both space and objectives, we will import and use the EvolutionParetoSearch algorithm to conduct the search:

from archai.discrete_search.algos.evolution_pareto import EvolutionParetoSearch

algo = EvolutionParetoSearch(
   space,
   objectives,
   None,
   "tmp",
   num_iters=5,
   init_num_models=10,
   seed=1234,
)
algo.search()

The search() method is called to start the NAS process. The algorithm will iterate through different network architectures, evaluate their performance based on the defined objectives, and ultimately produce a frontier of Pareto-optimal results.

Tasks

This section is under development.

Documentation

To demonstrate the capabilities of Archai, a series of documented examples are provided to showcase its functionality:

For additional information, please refer to the official documentation.

Support

If you have any questions or feedback about the Archai project or the open problems in Neural Architecture Search, please feel free to contact us using the following information:

We welcome any questions, feedback, or suggestions you may have and look forward to hearing from you.

Team

Archai has been created and maintained by Shital Shah, Debadeepta Dey, Gustavo de Rosa, Caio Mendes, Piero Kauffmann, Allie Del Giorno, Mojan Javaheripi, and Ofer Dekel at Microsoft Research.

Contributions

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademark

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

License

This project is released under the MIT License. Please review the file for more details.