MegEngine icon indicating copy to clipboard operation
MegEngine copied to clipboard

MegEngine 是一个快速、可拓展、易于使用且支持自动求导的深度学习框架

MegEngine

Documentation | 中文文档

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

Installation

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) or install the Windows distribution directly. Many other platforms are supported for inference.

Binaries

To install the pre-built binaries via pip wheels:

python3 -m pip install --upgrade pip
python3 -m pip install megengine -f https://megengine.org.cn/whl/mge.html

Building from Source

  • CMake build details. please refer to BUILD_README.md
  • Python binding build details, Please refer to BUILD_PYTHON_WHL_README.md

How to Contribute

  • MegEngine adopts Contributor Covenant as a guideline to run our community. Please read the Code of Conduct.
  • Every contributor of MegEngine must sign a Contributor License Agreement (CLA) to clarify the intellectual property license granted with the contributions.
  • You can help to improve MegEngine in many ways:

We strive to build an open and friendly community. We aim to power humanity with AI.

How to Contact Us

Resources

License

MegEngine is licensed under the Apache License, Version 2.0

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}
}

Copyright (c) 2014-2021 Megvii Inc. All rights reserved.