PaddleNLP is a PaddlePaddle-based suite for large language model training, compression, and high-performance inference across diverse AI hardware.
Overview
PaddleNLP targets industrial LLM workflows on top of the PaddlePaddle deep learning framework. It bundles APIs and trainers for pretraining, supervised fine-tuning, alignment, quantization, and deployment, with an Auto-style interface to load models and tokenizers quickly.
Hardware support spans multiple GPU and accelerator families, including Kunlun XPU, Ascend NPU, Enflame GCU, and Hygon DCU, with interfaces meant to reduce cost when switching devices. Training features include configurable 4D parallel strategies, Unified Checkpoint storage with async saves and compression, and fine-tuning optimizations such as FlashMask-focused data paths.
The model zoo lists many open model families including LLaMA, Qwen, DeepSeek, ChatGLM, Baichuan, Mistral, Bloom, and PP-UIE for information extraction. Tables in the documentation summarize which architectures support parallelism, PEFT, alignment algorithms, merge tooling, and quantized inference formats.
Inference modules emphasize fused operators and parallel serving, with documentation for Docker deployment, static graph models, and tuning on heterogeneous devices. Installation requires Python 3.8+ and PaddlePaddle 3.0 rc1 or newer via pip or source.
Key features
- Multi-hardware training and inference
- 4D distributed training strategies
- Unified Checkpoint async save and compression
- SFT, LoRA, and alignment trainers
- Broad pretrained model zoo
- Quantized and FP8 inference paths
- PP-UIE information extraction models
- Auto API for models and tokenizers
Use cases
- Fine-tuning Qwen or LLaMA on PaddlePaddle
- Deploying quantized LLM inference
- Information extraction with PP-UIE
- Switching LLM jobs between AI chips