lite.ai.toolkit  by xlite-dev

C++ AI toolkit for model inference, supporting 100+ models

created 4 years ago
4,188 stars

Top 11.9% on sourcepulse

GitHubView on GitHub
Project Summary

This C++ toolkit provides a lightweight, unified interface for over 100 pre-trained AI models, including object detection, segmentation, face analysis, and style transfer. It targets C++ developers seeking to integrate diverse AI capabilities into their applications with minimal dependencies and a consistent API. The primary benefit is rapid prototyping and deployment of complex AI features using a single, easy-to-use library.

How It Works

The toolkit acts as a high-level abstraction layer over popular inference engines like ONNX Runtime, MNN, and TensorRT. It offers a C++ API with a lite::cv::Type::Class syntax for accessing various models. This approach simplifies model integration by abstracting away the complexities of individual engine APIs and providing a consistent interface for model loading, inference, and post-processing.

Quick Start & Requirements

  • Install: Download prebuilt libraries from releases or build from source using sh ./build.sh.
  • Prerequisites: OpenCV is a default dependency. TensorRT support requires NVIDIA GPU, CUDA 12.x, and TensorRT 10.x+.
  • Setup: Prebuilt libraries and test resources are available via release tags. Building from source is supported on Linux.
  • Docs: Examples, Model Zoo

Highlighted Details

  • Supports 300+ C++ implementations and 500+ weights across ONNX, MNN, NCNN, and TNN formats.
  • Offers TensorRT integration for NVIDIA GPU acceleration.
  • Allows mixing toolkit models with custom ONNX Runtime or MNN implementations.
  • Extensive model coverage includes YOLO variants, face recognition (ArcFace, CosFace), matting, and more.

Maintenance & Community

The project is primarily maintained by @wangzijian1010. The README mentions focus on LLM/VLM Inference and links to related projects like "Awesome-LLM-Inference" and "LeetCUDA".

Licensing & Compatibility

The project is licensed under the GNU General Public License v3.0 (GPL-3.0). This license is copyleft, meaning derivative works must also be open-sourced under the same license, potentially restricting commercial use in closed-source applications.

Limitations & Caveats

The project's primary dependency, OpenCV, can be substantial. While prebuilt libraries are available, building from source may require significant time and system configuration. The GPL-3.0 license imposes strict copyleft requirements that may not be suitable for all commercial applications.

Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
1
Star History
139 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers), Michael Han Michael Han(Cofounder of Unsloth), and
1 more.

ktransformers by kvcache-ai

0.4%
15k
Framework for LLM inference optimization experimentation
created 1 year ago
updated 2 days 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 16 hours ago
Feedback? Help us improve.