contrain instruct datasets
Browse files
TRAIN.md
CHANGED
@@ -42,6 +42,20 @@ litgpt convert_pretrained_checkpoint ../out/pretrain-4/final/ ../out/pretrain-4-
|
|
42 |
# litgpt convert_pretrained_checkpoint ../out/pretrain-5/final/ ../out/pretrain-5-final-checkpoint
|
43 |
```
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
## Chat with Pretrained model
|
46 |
|
47 |
```bash
|
|
|
42 |
# litgpt convert_pretrained_checkpoint ../out/pretrain-5/final/ ../out/pretrain-5-final-checkpoint
|
43 |
```
|
44 |
|
45 |
+
### Continued Pretraining
|
46 |
+
|
47 |
+
```bash
|
48 |
+
python -B prepare_contrain_datasets.py
|
49 |
+
```
|
50 |
+
|
51 |
+
```bash
|
52 |
+
CUDA_VISIBLE_DEVICES=0 CUDA_LAUNCH_BLOCKING=0 PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True litgpt pretrain --config contrain-model-0.yaml
|
53 |
+
litgpt convert_pretrained_checkpoint ../out/contrain-0/final/ ../out/contrain-0-final-checkpoint
|
54 |
+
|
55 |
+
CUDA_VISIBLE_DEVICES=0 CUDA_LAUNCH_BLOCKING=0 PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True litgpt pretrain --config contrain-model-1.yaml
|
56 |
+
litgpt convert_pretrained_checkpoint ../out/contrain-1/final/ ../out/contrain-1-final-checkpoint
|
57 |
+
```
|
58 |
+
|
59 |
## Chat with Pretrained model
|
60 |
|
61 |
```bash
|