Resource scheduling and cluster management for AI
Перейти к файлу
Scarlett Li 9281c70983
Update README.md
2020-05-14 14:55:44 +08:00
.dependabot Update dependabot config file (#2914) 2019-06-11 17:34:11 +08:00
.github [CI] Update python to 3.8 for lint document (#4345) 2020-04-01 10:59:15 +08:00
build [build] Disable yarn option in pai_build.py. (#4443) 2020-04-24 13:08:01 +08:00
contrib Change default network plugin from weave to calico (#4519) 2020-05-13 13:24:16 +08:00
deployment [Doc] Remove yarn content from deployment doc (#4447) 2020-04-26 10:22:48 +08:00
docs [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
examples [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
marketplace-v2 Add support for AMD GPU (#4093) 2020-01-10 13:53:38 +08:00
src [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
subprojects/frameworklauncher [Hived]: Move Hived from OpenPAI to dedicated repo (#4319) 2020-03-23 20:17:53 +08:00
tests/jenkins [Jenkins]Remove Yarn Verion's Test (#4440) 2020-04-24 10:37:13 +08:00
version [Version] update master branch version (#4175) 2020-02-13 09:58:03 +08:00
.gitattributes Add service deployment for framework controller (#3435) 2019-09-02 20:35:11 +08:00
.gitignore [kube-runtime] remove kube-runtime (#4311) 2020-03-23 20:48:37 +08:00
.travis.yml validate rest server swagger (#4404) 2020-04-20 10:47:59 +08:00
Jenkinsfile [Jenkins]Remove Yarn Verion's Test (#4440) 2020-04-24 10:37:13 +08:00
LICENSE Initial commit 2017-09-25 04:24:56 -07:00
NOTICE.txt Use Postgresql as an alternative storage for job history (#4164) 2020-03-19 14:05:02 +08:00
README.md Update README.md 2020-05-14 14:55:44 +08:00
README_zh_CN.md [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
RELEASE_NOTE.md [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
RELEASE_NOTE_zh_CN.md [Docs] Remove outdated docs (#4446) 2020-05-13 19:21:07 +08:00
crowdin.yml Chinese translation updates (#3424) 2019-08-23 10:42:03 +08:00
paictl.py [Job Debugging] Basic Implement Of Job Debugging. (#2272) 2019-03-07 13:25:04 +08:00
pailogo.jpg add logo 2018-04-18 19:37:06 +08:00
sysarch.png update system architecture section 2017-11-24 16:18:19 +08:00

README.md

Open Platform for AI (OpenPAI) alt text

Build Status Coverage Status Join the chat at https://gitter.im/Microsoft/pai Version

简体中文

OpenPAI is an open source platform that provides complete AI model training and resource management capabilities, it is easy to extend and supports on-premise, cloud and hybrid environments in various scale.

OpenPAI v0.14.0 has been released! And a formal v1.0.0 version is coming soon.

A brief comparison between v0.14.0 and the upcoming v1.0.0:

v0.14.0 v1.0.0 (coming soon)
Architecture Kubernetes + Hadoop YARN Kubernetes
Scheduler YARN Scheduler HiveD / K8S default
Job Orchestrating YARN Framework Launcher Framework Controller
RESTful API v1 + v2 pure v2
Storage Team-wise storage plugin PV/PVC storage sharing
Marketplace Marketplace v2 openpaimarketplace
SDK Python JavaScript / TypeScript

Table of Contents

  1. When to consider OpenPAI
  2. Why choose OpenPAI
  3. Get started
  4. Standalone Components
  5. Reference
  6. Related Projects
  7. Get involved
  8. How to contribute

When to consider OpenPAI

  1. When your organization needs to share powerful AI computing resources (GPU/FPGA farm, etc.) among teams.
  2. When your organization needs to share and reuse common AI assets like Model, Data, Environment, etc.
  3. When your organization needs an easy IT ops platform for AI.
  4. When you want to run a complete training pipeline in one place.

Why choose OpenPAI

The platform incorporates the mature design that has a proven track record in Microsoft's large-scale production environment.

Support on-premises and easy to deploy

OpenPAI is a full stack solution. OpenPAI not only supports on-premises, hybrid, or public Cloud deployment but also supports single-box deployment for trial users.

Pre-built docker for popular AI frameworks. Easy to include heterogeneous hardware. Support Distributed training, such as distributed TensorFlow.

Most complete solution and easy to extend

OpenPAI is a most complete solution for deep learning, support virtual cluster, compatible with Kubernetes eco-system, complete training pipeline at one cluster etc. OpenPAI is architected in a modular way: different module can be plugged in as appropriate. Here is the architecture of OpenPAI, highlighting technical innovations of the platform.

Get started

OpenPAI manages computing resources and is optimized for deep learning. Through docker technology, the computing hardware are decoupled with software, so that it's easy to run distributed jobs, switch with different deep learning frameworks, or run other kinds of jobs on consistent environments.

As OpenPAI is a platform, there are typically two different roles:

  • Cluster users are the consumers of the cluster's computing resources. According to the deployment scenarios, cluster users could be researchers of Machine Learning and Deep Learning, data scientists, lab teachers, students and so on.
  • Cluster administrators are the owners and maintainers of computing resources. The administrators are responsible for the deployment and availability of the cluster.

OpenPAI provides end-to-end manuals for both cluster users and administrators.

For cluster administrators

The admin manual is a comprehensive guide for cluster administrators, it covers (but not limited to) the following contents:

For cluster users

The user manual is a guidance for cluster users, who could train and serve deep learning (and other) tasks on OpenPAI.

  • Job submission and monitoring. The quick start tutorial is a good start for learning how to train models on OpenPAI. And more examples and supports to multiple mainstream frameworks (out-of-the-box docker images) are in here. OpenPAI also provides supports for good debuggability and advanced job functionalities.

  • Data managements. Users could use cluster provisioned storages and custom storages in their jobs. The cluster provisioned storages are well integrated and easy to configure in a job (refer to here).

  • Collaboration and sharing. OpenPAI provides facilities for collaboration in teams and organizations. The cluster provisioned storages are organized by teams (groups). And users could easily share their works (e.g. jobs) in the marketplace, where others could discover and reproduce (clone) by one-click.

Besides the webportal, OpenPAI provides VS Code extension and command line tool (preview). The VS Code extension is a friendly, GUI based client tool of OpenPAI, and it's highly recommended. It's an extension of Visual Studio Code. It can submit job, simulate jobs locally, manage multiple OpenPAI environments, and so on.

Standalone Components

With the v1.0.0 release, OpenPAI starts using a more modularized component design and re-organize the code structure to 1 main repo together with 7 standalone key component repos. pai is the main repo, and the 7 component repos are:

  • hivedscheduler is a Kubernetes Scheduler Extender for Multi-Tenant GPU clusters, which provides various advantages over standard k8s scheduler.
  • frameworkcontroller is built to orchestrate all kinds of applications on Kubernetes by a single controller.
  • openpai-protocol is the specification of OpenPAI job protocol.
  • openpai-runtime provides runtime support which is necessary for the OpenPAI protocol.
  • openpaisdk is a JavaScript SDK designed to facilitate the developers of OpenPAI to offer more user-friendly experience.
  • openpaimarketplace is a service which stores examples and job templates. Users can use it from webportal plugin to share their jobs or run-and-learn others' sharing job.
  • openpaivscode is a VSCode extension, which makes users connect OpenPAI clusters, submit AI jobs, simulate jobs locally and manage files in VSCode easily.

Reference

Targeting at openness and advancing state-of-art technology, Microsoft Research (MSR) and Microsoft Software Technology Center Asia (STCA) had also released few other open source projects.

  • NNI : An open source AutoML toolkit for neural architecture search and hyper-parameter tuning. We encourage researchers and students leverage these projects to accelerate the AI development and research.
  • MMdnn : A comprehensive, cross-framework solution to convert, visualize and diagnose deep neural network models. The "MM" in MMdnn stands for model management and "dnn" is an acronym for deep neural network.
  • NeuronBlocks : An NLP deep learning modeling toolkit that helps engineers to build DNN models like playing Lego. The main goal of this toolkit is to minimize developing cost for NLP deep neural network model building, including both training and inference stages.
  • SPTAG : Space Partition Tree And Graph (SPTAG) is an open source library for large scale vector approximate nearest neighbor search scenario.

Get involved

How to contribute

Contributor License Agreement

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 repos 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.

Call for contribution

We are working on a set of major features improvement and refactor, anyone who is familiar with the features is encouraged to join the design review and discussion in the corresponding issue ticket.

Who should consider contributing to OpenPAI

  • Folks who want to add support for other ML and DL frameworks
  • Folks who want to make OpenPAI a richer AI platform (e.g. support for more ML pipelines, hyperparameter tuning)
  • Folks who want to write tutorials/blog posts showing how to use OpenPAI to solve AI problems

Contributors

One key purpose of PAI is to support the highly diversified requirements from academia and industry. PAI is completely open: it is under the MIT license. This makes PAI particularly attractive to evaluate various research ideas, which include but not limited to the components.

PAI operates in an open model. It is initially designed and developed by Microsoft Research (MSR) and Microsoft Software Technology Center Asia (STCA) platform team. We are glad to have Peking University, Xi'an Jiaotong University, Zhejiang University, and University of Science and Technology of China join us to develop the platform jointly. Contributions from academia and industry are all highly welcome.