README.md 5.0 KB
Newer Older
1 2
# MegEngine

Z
zhanghaolong 已提交
3
<p align="center">
“wenjuan” 已提交
4
  <img width="128" height="128" src="logo.png">
Z
zhanghaolong 已提交
5
</p>
T
tpoisonooo 已提交
6
<h3> <a href="https://www.megengine.org.cn/doc/stable/en/user-guide/index.html"> Documentation </a> | <a href="https://www.megengine.org.cn/doc/stable/zh/user-guide/index.html"> 中文文档 </a> </h3>
7

王彪 已提交
8
[![](https://img.shields.io/badge/English-%E4%B8%AD%E6%96%87-green.svg)](README_CN.md) [![](https://img.shields.io/badge/Website-MegEngine-green.svg)](https://megengine.org.cn/) [![](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE) [![](https://img.shields.io/badge/Chat-on%20QQ-green.svg?logo=tencentqq)](https://jq.qq.com/?_wv=1027&k=jJcBU1xi) [![](https://img.shields.io/badge/Discuss-on%20Zhihu-8A2BE2.svg?labelColor=00BFFF&logo=zhihu)](https://www.zhihu.com/people/megengine-bot)
9

10 11 12 13 14 15 16 17 18 19 20
MegEngine is a fast, scalable and easy-to-use deep learning framework with 3 key features.
* **Unified core for both training and inference**
    * You can represent quantization/dynamic shape/image pre-processing and even derivation in one model.
    * After training, just put everything into your model and inference it on any platform at ease. Speed and precision problems won't bother you anymore due to the same core inside. Check the usage [here](https://www.megengine.org.cn/doc/stable/zh/user-guide/model-development/traced_module/index.html).
* **Lowest hardware requirements helped by algorithms**
    * In training, GPU memory usage could go down to one-third at the cost of only one additional line, which enables the [DTR algorithm](https://www.megengine.org.cn/doc/stable/zh/user-guide/model-development/dtr/index.html).
    * Gain the lowest memory usage when inferencing a model by leveraging our unique pushdown memory planner
* **Inference efficiently on all-platform**
    * Inference fast and high-precision on x86/Arm/CUDA/RoCM
    * Support Linux/Windows/iOS/Android/TEE...
    * Save more memory and optimize speed by leveraging [advanced usage](https://www.megengine.org.cn/doc/stable/zh/user-guide/deployment/lite/advance/index.html)
21 22 23 24 25

------

## Installation

H
huangxinda 已提交
26
**NOTE:** MegEngine now supports Python installation on Linux-64bit/Windows-64bit/MacOS(CPU-Only)-10.14+/Android 7+(CPU-Only) platforms with Python from 3.5 to 3.8. On Windows 10 you can either install the Linux distribution through [Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl) or install the Windows distribution directly. Many other platforms are supported for inference.
27 28 29

### Binaries

J
jiakai 已提交
30
To install the pre-built binaries via pip wheels:
31 32

```bash
Z
zhanghaolong 已提交
33
python3 -m pip install --upgrade pip
Z
zhanghaolong 已提交
34
python3 -m pip install megengine -f https://megengine.org.cn/whl/mge.html
35 36
```

J
jiakai 已提交
37
## Building from Source
38

Z
zhanghaolong 已提交
39 40
* CMake build details. please refer to [BUILD_README.md](scripts/cmake-build/BUILD_README.md)
* Python binding build details, Please refer to [BUILD_PYTHON_WHL_README.md](scripts/whl/BUILD_PYTHON_WHL_README.md)
41 42 43

## How to Contribute

J
jiakai 已提交
44 45
* MegEngine adopts [Contributor Covenant](https://contributor-covenant.org) as a guideline to run our community. Please read the [Code of Conduct](CODE_OF_CONDUCT.md).
* Every contributor of MegEngine must sign a [Contributor License Agreement (CLA)](CONTRIBUTOR_LICENSE_AGREEMENT.md) to clarify the intellectual property license granted with the contributions.
J
Json Lee 已提交
46
* You can help to improve MegEngine in many ways:
47 48 49 50 51 52 53 54
    * Write code.
    * Improve [documentation](https://github.com/MegEngine/Docs).
    * Answer questions on [MegEngine Forum](https://discuss.megengine.org.cn), or Stack Overflow.
    * Contribute new models in [MegEngine Model Hub](https://github.com/megengine/hub).
    * Try a new idea on [MegStudio](https://studio.brainpp.com).
    * Report or investigate [bugs and issues](https://github.com/MegEngine/MegEngine/issues).
    * Review [Pull Requests](https://github.com/MegEngine/MegEngine/pulls).
    * Star MegEngine repo.
J
jiakai 已提交
55
    * Cite MegEngine in your papers and articles.
56
    * Recommend MegEngine to your friends.
J
jiakai 已提交
57
    * Any other form of contribution is welcomed.
58

J
jiakai 已提交
59
We strive to build an open and friendly community. We aim to power humanity with AI.
60

J
jiakai 已提交
61
## How to Contact Us
62 63 64 65

* Issue: [github.com/MegEngine/MegEngine/issues](https://github.com/MegEngine/MegEngine/issues)
* Email: [megengine-support@megvii.com](mailto:megengine-support@megvii.com)
* Forum: [discuss.megengine.org.cn](https://discuss.megengine.org.cn)
Z
zhanghaolong 已提交
66
* QQ Group: 1029741705
67 68 69 70 71

## Resources

- [MegEngine](https://megengine.org.cn)
- [MegStudio](https://studio.brainpp.com)
72 73 74 75
- mirror repo
   - OPENI: [openi.org.cn/MegEngine](https://www.openi.org.cn/html/2020/Framework_0325/18.html)
   - Gitee: [gitee.com/MegEngine/MegEngine](https://gitee.com/MegEngine/MegEngine)

76 77 78

## License

J
Json Lee 已提交
79
MegEngine is licensed under the Apache License, Version 2.0
80

W
wenjuan 已提交
81 82 83 84 85 86 87 88 89 90 91 92
## Citation
If you use MegEngine in your publication,please cite it by using the following BibTeX entry.

```
@Misc{MegEngine,
  institution = {megvii},
  title =  {MegEngine:A fast, scalable and easy-to-use deep learning framework},
  howpublished = {\url{https://github.com/MegEngine/MegEngine}},
  year = {2020}
}
```

J
jiakai 已提交
93
Copyright (c) 2014-2021 Megvii Inc. All rights reserved.