whatisgithub

What is paddleformers?

paddlepaddle/paddleformers — explained in plain English

Analysis updated 2026-06-24

12,984PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

PaddleFormers is a high-performance library for training and fine-tuning 100+ large AI models on PaddlePaddle, with distributed multi-GPU support and faster throughput than Megatron-LM for models like DeepSeek-V3 and Llama-3.

Mindmap

mindmap
  root((paddleformers))
    Supported Models
      DeepSeek V3
      Llama 3
      Qwen series
    Training
      Tensor parallelism
      Pipeline parallelism
      LoRA fine-tuning
    Deployment
      vLLM export
      SGLang export
    Infrastructure
      CUDA GPUs
      Docker install
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Fine-tune a large language model like Llama-3 or Qwen2 on your own dataset using LoRA with far fewer GPU resources than full retraining.

USE CASE 2

Train large AI models across many GPUs using tensor and pipeline parallelism for faster throughput.

USE CASE 3

Export a PaddleFormers-trained model to a format compatible with vLLM or SGLang for production deployment.

What is it built with?

PythonPaddlePaddleCUDADockerLoRA

How does it compare?

paddlepaddle/paddleformersrudrabha/wav2lippyinstaller/pyinstaller
Stars12,98412,98412,989
LanguagePythonPythonPython
Setup difficultyhardmoderateeasy
Complexity5/53/52/5
Audienceresearcherresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires CUDA-enabled GPUs and Python 3.10+, install via Docker image or pip, with significant GPU memory needed for large model training.

So what is it?

PaddleFormers is a library for training large AI models, built on top of PaddlePaddle, which is Baidu's deep learning framework. It provides a model library and training toolkit similar in purpose to the widely known Hugging Face Transformers, but optimized for PaddlePaddle's ecosystem and for high-performance distributed training across many GPUs. The library supports over 100 models, covering both large language models (models that process and generate text) and vision-language models (models that handle both images and text together). Supported model families include DeepSeek-V3, Qwen2 and Qwen3, Llama-3, GLM-4.5, Baidu's own ERNIE-4.5 series, and several others. The README is written primarily in Chinese. The main technical focus is training efficiency. The library implements strategies for spreading training across many machines at once, including tensor parallelism, pipeline parallelism, and expert parallelism. It also uses lower-precision arithmetic and other optimizations to reduce memory and compute usage during training. According to the README, training speed for key models such as DeepSeek-V3 and GLM-4.5-Air exceeds that of Megatron-LM, which is a commonly used benchmark for large-scale training performance. Beyond initial training from scratch, the library supports the full workflow including fine-tuning with various techniques such as LoRA (a method for adapting a model with far fewer parameters than full retraining) and alignment training methods. Models trained with PaddleFormers can be saved in a format compatible with other tools like vLLM and SGLang, so they can be deployed outside of PaddlePaddle. Installation is via Docker image or pip, and requires Python 3.10 or later along with CUDA-enabled GPUs for training.

Copy-paste prompts

Prompt 1
How do I fine-tune Llama-3 using LoRA with PaddleFormers? Show me the training configuration and launch command.
Prompt 2
Set up distributed training across 8 GPUs in PaddleFormers using tensor parallelism, what config flags do I set?
Prompt 3
How do I install PaddleFormers via Docker and run a basic model training job to verify the setup works?
Prompt 4
How do I export a model trained with PaddleFormers so I can serve it with vLLM for inference?
Prompt 5
What is the difference between tensor parallelism and pipeline parallelism in PaddleFormers, and when should I use each?

Frequently asked questions

What is paddleformers?

PaddleFormers is a high-performance library for training and fine-tuning 100+ large AI models on PaddlePaddle, with distributed multi-GPU support and faster throughput than Megatron-LM for models like DeepSeek-V3 and Llama-3.

What language is paddleformers written in?

Mainly Python. The stack also includes Python, PaddlePaddle, CUDA.

How hard is paddleformers to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is paddleformers for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.