PaddleFormers  by PaddlePaddle

Pre-trained model toolkit for multimodal AI workflows

created 6 years ago
12,915 stars

Top 3.9% on sourcepulse

GitHubView on GitHub
Project Summary

PaddleHub is a comprehensive toolkit offering over 400 pre-trained AI models for computer vision, natural language processing, speech, video, and cross-modal tasks. It targets developers and researchers seeking easy integration of advanced AI capabilities into their applications, enabling rapid prototyping and deployment with minimal code.

How It Works

PaddleHub leverages the PaddlePaddle deep learning framework to provide a unified interface for accessing and utilizing a vast array of pre-trained models. Its design emphasizes ease of use, allowing users to load and run models with just a few lines of Python code. The toolkit also supports serving models as services with a single command, simplifying deployment.

Quick Start & Requirements

  • Install PaddlePaddle (CPU or GPU version) and PaddleHub via pip:
    pip install --upgrade paddlepaddle-gpu # or paddlepaddle
    pip install --upgrade paddlehub
    
  • Example usage for Chinese word segmentation (LAC module):
    import paddlehub as hub
    lac = hub.Module(name="lac")
    results = lac.cut(text=["今天是个好天气。"], use_gpu=False, batch_size=1, return_tag=True)
    print(results)
    
  • Serving a model: !hub serving start -m lac
  • Official resources: Quick Start, Model List, Demos

Highlighted Details

  • Supports 400+ AI models across CV, NLP, Speech, Video, and Cross-Modal domains.
  • Features easy-to-use APIs for inference and model serving.
  • Includes recent additions like ERNIE-ViLG, Disco Diffusion, and Stable Diffusion for text-to-image generation.
  • Cross-platform compatibility (Linux, Windows, MacOS).

Maintenance & Community

The project has active contributions and maintains a WeChat technical group for user support. Recent updates include version 2.3.0 and releases to HuggingFace Spaces.

Licensing & Compatibility

Licensed under Apache 2.0, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

While PaddleHub offers a broad range of models, the quality and performance can vary. Specific model requirements (e.g., GPU, CUDA versions) are not always explicitly detailed for every module, requiring users to consult individual model documentation.

Health Check
Last commit

1 week ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Omar Sanseviero Omar Sanseviero(DevRel at Google DeepMind), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
4 more.

argilla by argilla-io

0.4%
5k
Collaboration tool for building high-quality AI datasets
created 4 years ago
updated 5 days ago
Feedback? Help us improve.