SuperAPIAI Directory

PaddleNLP

github.com · AI developer platforms

Easy-to-use and powerful NLP and LLM library.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

PaddleNLP is a large language model development suite based on the PaddlePaddle deep learning framework. It provides developers with full-process development capabilities for NLP and large models (LLMs), helping to realize efficient industry-grade large model applications. Its characteristics are "simple and easy to use" and "ultimate performance."

Main Capabilities

  • Broad model coverage: Supports multiple model series such as LLaMA, Qwen, DeepSeek, Mistral, ChatGLM, Bloom, Baichuan, Gemma, and OPT, and continuously supports the latest popular models such as Qwen3, DeepSeek V3/R1, and QwQ-32B.
  • End-to-end process: Covers large model pretraining, fine-tuning (including SFT and PEFT techniques), alignment, quantization, inference, and deployment.
  • High-performance training: Supports 4D hybrid parallelism (data parallelism, grouped parameter sharded data parallelism, tensor model parallelism, and pipeline model parallelism). Trainer supports configuration-based distributed strategies. Combined with zero-padding data flow and FlashMask high-performance operators, it improves fine-tuning training throughput.
  • Storage optimization: Unified Checkpoint supports dynamic scaling and restoration of training checkpoints, asynchronous saving can accelerate model storage by 95%, and Checkpoint compression can save 78.5% of storage space.
  • High-performance inference: Built-in dynamic insertion and full-process operator fusion strategies, supports Weight Only INT8 and INT4 inference, supports WAC (weights, activations, Cache KV) for INT8 and FP8 quantized inference, and supports speculative decoding.
  • Multi-hardware adaptation: Supports training and inference of large models and natural language understanding models on multiple hardware types including NVIDIA GPU, Kunlun XPU, Ascend NPU, Enflame GCU, and Hygon DCU, with interfaces supporting rapid hardware switching.
  • Featured components:
    • PP-UIE: A self-developed general information extraction model, supports 8K-length information extraction, strengthens zero-shot learning capability, supports cold start and transfer learning with very little or even zero labeled data, and improves training efficiency by 1.8 times compared with LLama-Factory.
    • FlashRAG-Paddle: An efficient RAG development and evaluation framework based on PaddleNLP. Its inference performance is improved by more than 70% compared with transformers dynamic graphs.
    • MergeKit: A modelfusion tool that alleviates alignment costs.
    • Embedding training: Supports INF-CL training with very large batch sizes.

Usage

  • Environment requirements: paddlepaddle >= 3.0.0rc1. If PaddlePaddle is not yet installed, please refer to the official PaddlePaddle website for installation.
  • Installation: The latest develop branch code can be installed through the following command (see the Installation page in the official documentation for the specific command).
  • Quick start: PaddleNLP provides an Auto API to quickly load models and Tokenizer. The official example gives text generation using the Qwen/Qwen2-0.5B model. It also provides a quick fine-tuning method that does not require cloning the source code.
  • Learning resources: Selected model library, multi-scenario examples, and interactive tutorials (which can be studied on the free computing platform AI Studio).

Applicable Scenarios

Covers application scenarios such as industry-grade intelligent assistants, content creation, knowledge question answering, and key information extraction. It is suitable for large model training, compression, and inference implementation in industries such as intelligent manufacturing, traffic command, healthcare, and financial services.

Limitations

  • The current materials do not provide clear information on charging, pricing, or commercial licensing models, and only state that it follows the Apache-2.0 open source license.
  • For the specific list of supported models, hardware adaptation details, and installation commands, please consult the official documentation. This introduction does not elaborate on them one by one.
  • The detailed usage steps and performance data of some features (such as PP-UIE and FlashRAG-Paddle) need to refer to the official documentation and corresponding links. This article does not fabricate them.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools