README.md 492 Bytes
Newer Older
Jiarui Fang's avatar
Jiarui Fang committed
1
## Overview
2
This example shows how to use Colossal-AI to run huggingface GPT training in distributed manners.
Jiarui Fang's avatar
Jiarui Fang committed
3

4
## GPT
5
We use the GPT2 model from huggingface transformers. The input data is randonly generated.
6
7
The `train_gpt_demo.py` provides three distributed plans, i.e. ColossalAI, PyTorch DDP and ZeRO.
The ColossalAI leverages Tensor Parallel and Gemini.
Jiarui Fang's avatar
Jiarui Fang committed
8

9
## Quick Start
10
You can launch training by using the following bash script.
Jiarui Fang's avatar
Jiarui Fang committed
11
12

```bash
13
14
pip install -r requirements.txt
bash run.sh
Jiarui Fang's avatar
Jiarui Fang committed
15
```