MegCC  by MegEngine

Deep-learning model compiler for efficient inference

created 2 years ago
487 stars

Top 64.1% on sourcepulse

GitHubView on GitHub
Project Summary

MegCC is a deep learning model compiler designed for extreme portability and efficiency, targeting embedded systems and mobile devices. It enables developers to deploy neural networks with minimal runtime overhead, achieving small binary sizes and fast inference.

How It Works

MegCC leverages the MLIR infrastructure to compile models, generating highly optimized, hand-tuned computation kernels. It supports static and dynamic tensor shapes and can bundle essential computer vision operators, eliminating the need for large external libraries. The compilation process includes static memory planning and model optimizations, resulting in low memory usage and instant boot times during inference.

Quick Start & Requirements

Highlighted Details

  • Extremely lightweight runtime: 81KB for MobileNet v1 (fp32).
  • High performance through expert-optimized kernels.
  • Portable code generation for various environments, including bare-metal.
  • Low memory usage and instant inference startup via compile-time optimizations.

Maintenance & Community

  • No specific community links (Discord/Slack) or notable contributors/sponsorships are mentioned in the README.

Licensing & Compatibility

  • License: Apache License, Version 2.0.
  • Compatibility: Permissive license suitable for commercial and closed-source use.

Limitations & Caveats

The README does not explicitly detail supported operators or provide benchmark comparisons against other compilers. Community engagement channels are not readily apparent.

Health Check
Last commit

9 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
5 stars in the last 90 days

Explore Similar Projects

Starred by Bojan Tunguz Bojan Tunguz(AI Scientist; Formerly at NVIDIA), Mckay Wrigley Mckay Wrigley(Founder of Takeoff AI), and
8 more.

ggml by ggml-org

0.3%
13k
Tensor library for machine learning
created 2 years ago
updated 3 days ago
Starred by George Hotz George Hotz(Author of tinygrad; Founder of the tiny corp, comma.ai), Anton Bukov Anton Bukov(Cofounder of 1inch Network), and
16 more.

tinygrad by tinygrad

0.1%
30k
Minimalist deep learning framework for education and exploration
created 4 years ago
updated 1 day ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Nat Friedman Nat Friedman(Former CEO of GitHub), and
32 more.

llama.cpp by ggml-org

0.4%
84k
C/C++ library for local LLM inference
created 2 years ago
updated 20 hours ago
Feedback? Help us improve.