Skip to content

Commit 4c13c61

Browse files
committed
tweak the doc
1 parent 40bd933 commit 4c13c61

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

start_fast.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Please follow this exact order.
2121
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
2222
```
2323

24-
2. Install system-wide `cuda` if you don't have it already. [NVIDIA instruction](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html). Of course ideally use [the premade packages for your distro](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-installation).
24+
2. Install system-wide `cuda` if you don't have it already. [NVIDIA instructions](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html). Of course ideally use [the premade packages for your distro](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-installation).
2525
Use the same major version as pytorch's cuda build. To check use:
2626

2727
```
@@ -106,7 +106,18 @@ Note that Megatron wants `data/meg-gpt2-oscar-en-10k_text_document` prefix later
106106

107107
## 3. Train
108108

109-
Here is a tiny model training setup configured over 2 gpus to train on the data we prepared in step 2. Put it in a script or run it directly:
109+
Here is a tiny model training setup configured over 2 gpus to train on the data we prepared in step 2.
110+
111+
Put it in a script or run it directly.
112+
113+
If you have only 1 gpu, change these 2 lines below to:
114+
115+
```
116+
N_GPUS=1
117+
TP_SIZE=1
118+
```
119+
120+
The script:
110121

111122
```
112123
CHECKPOINT_PATH=checkpoints/gpt2

0 commit comments

Comments
 (0)