MCPcopy Create free account
hub / github.com/MegEngine/MegEngine

github.com/MegEngine/MegEngine @v1.13.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.13.4 ↗ · + Follow
41,164 symbols 120,614 edges 4,157 files 2,835 documented · 7% updated 20mo agov1.13.4 · 2024-04-30★ 4,807170 open issues

Browse by type

Functions 33,912 Types & classes 7,186 Endpoints 66
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MegEngine

Documentation | 中文文档

MegEngine is a fast, scalable, and user friendly deep learning framework with 3 key features.

  • Unified framework for both training and inference
    • Quantization, dynamic shape/image pre-processing, and even derivation with a single model.
    • After training, put everything into your model to inference on any platform with speed and precision. Check here for a quick guide.
  • The lowest hardware requirements
    • The memory usage of the GPU can be reduced to one-third of the original memory usage when DTR algorithm is enabled.
    • Inference models with the lowest memory usage by leveraging our Pushdown memory planner.
  • Inference efficiently on all platforms
    • Inference with speed and high-precision on x86, Arm, CUDA, and RoCM.
    • Supports Linux, Windows, iOS, Android, TEE, etc.
    • Optimize performance and memory usage by leveraging our advanced features.

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.6 to 3.9. 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

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

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.

Core symbols most depended-on inside this repo

Shape

Function 17,290
Method 16,622
Class 6,967
Enum 219
Route 66

Languages

C++85%
Python15%
C1%

Modules by API surface

dnn/cuda-stub/src/libcuda-wrap_11.8.h1,534 symbols
dnn/cuda-stub/src/libcuda-wrap_11.4.h1,462 symbols
dnn/cuda-stub/src/libcuda-wrap_11.2.h1,390 symbols
dnn/cuda-stub/src/libcuda-wrap_11.1.h1,303 symbols
dnn/cuda-stub/src/libcuda-wrap_10.2.h1,192 symbols
dnn/cuda-stub/src/libcuda-wrap_10.1.h1,141 symbols
dnn/atlas-stub/src/libatlas-wrap_1.1.0.h535 symbols
dnn/atlas-stub/src/libatlas-wrap.h388 symbols
dnn/include/megdnn/dtype/half.hpp235 symbols
dnn/include/megdnn/dtype/bfloat16.hpp224 symbols
lite/example/cpp_example/mge/cv/stb_image.h215 symbols
src/opr/test/basic_arith/elemwise.cpp168 symbols

For agents

$ claude mcp add MegEngine \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page