README.md 448 Bytes
Newer Older
BoxiangW's avatar
BoxiangW committed
1
# Handson 4: Comparison of Large Batch Training Optimization
2
3
4

## Prepare Dataset

BoxiangW's avatar
BoxiangW committed
5
We use CIFAR10 dataset in this example. The dataset will be downloaded to `../data` by default. 
6
7
8
9
10
11
12
13
14
15
If you wish to use customized directory for the dataset. You can set the environment variable `DATA` via the following command.

```bash
export DATA=/path/to/data
```


## Run on 2*2 device mesh

```bash
BoxiangW's avatar
BoxiangW committed
16
colossalai run --nproc_per_node 4 train.py --config config.py
17
```