File size: 669 Bytes
a2755fb ea06257 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# Train
## Tokenizer
```bash
cd scripts
python -m venv venv
source venv/bin/activate
pip install -U -r requirements.in
```
```bash
python -B train_tokenizer.py
```
## Dataset
```bash
cd scripts
python -m venv venv-lit
source venv-lit/bin/activate
pip install -U -r requirements-lit.in
```
```bash
python -B prepare_pretrain_dataset.py
```
## Model
```bash
cd scripts
python -m venv venv-lit
source venv-lit/bin/activate
pip install -U -r requirements-lit.in
```
```bash
litgpt pretrain --config ./model.yaml
```
## Evaluate
```bash
litgpt evaluate --tasks 'hellaswag,gsm8k,truthfulqa_mc2,mmlu,winogrande,arc_challenge' --batch_size 8 out/pretrain/final/
```
|