Giter Site home page Giter Site logo

yxz9087 / megengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from megengine/megengine

0.0 0.0 0.0 14.95 MB

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

Home Page: https://megengine.org.cn/

License: Apache License 2.0

CMake 0.44% Dockerfile 0.01% Shell 0.22% C++ 79.55% C 0.97% Makefile 0.01% Python 4.75% Cuda 14.01% Starlark 0.02% MLIR 0.01% HTML 0.02%

megengine's Introduction

MegEngine

English | 中文

MegEngine is a fast, scalable and easy-to-use deep learning framework, with auto-differentiation.


Installation

NOTE: MegEngine now supports Python installation on Linux-64bit/Windows-64bit/MacOS(CPU-Only)-10.14+ 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

Prerequisites

Most of the dependencies of MegEngine are located in third_party directory, which can be prepared by executing:

./third_party/prepare.sh
./third_party/install-mkl.sh

But some dependencies need to be installed manually:

  • CUDA(>=10.1), cuDNN(>=7.6) are required when building MegEngine with CUDA support.
  • TensorRT(>=5.1.5) is required when building with TensorRT support.
  • LLVM/Clang(>=6.0) is required when building with Halide JIT support.
  • Python(>=3.5) and numpy are required to build Python modules.

Build

MegEngine uses CMake as the build tool. We provide the following scripts to facilitate building.

  • host_build.sh builds MegEngine that runs on the same host machine (i.e., no cross compiling). The following command displays the usage:
    scripts/cmake-build/host_build.sh -h
    
  • cross_build_android_arm_inference.sh builds MegEngine for DNN inference on Android-ARM platforms. The following command displays the usage:
    scripts/cmake-build/cross_build_android_arm_inference.sh -h
    
  • cross_build_linux_arm_inference.sh builds MegEngine for DNN inference on Linux-ARM platforms. The following command displays the usage:
    scripts/cmake-build/cross_build_linux_arm_inference.sh -h
    
  • cross_build_ios_arm_inference.sh builds MegEngine for DNN inference on iOS (iPhone/iPad) platforms. The following command displays the usage:
    scripts/cmake-build/cross_build_ios_arm_inference.sh
    

Please refer to BUILD_README.md for more details.

How to Contribute

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

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

megengine's People

Contributors

chaibyte avatar flashrunrun avatar haolongzhangm avatar hxdmegvii avatar jia-kai avatar kagome1007 avatar lijiansong avatar llehtahw avatar luzzyzhang avatar megvii-mge avatar stonemo avatar wkcn avatar xxr3376 avatar zjd1988 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.