Skip to content

Commit

Permalink
Update README.md (CarperAI#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCastricato authored Jan 10, 2023
1 parent f71401e commit 24b041a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ trainer = trlx.train('EleutherAI/gpt-j-6B', dataset=[('dolphins', 'geese'), (1.0
trainer.generate(**tokenizer('Q: Who rules the world? A:', return_tensors='pt'), do_sample=True)
```

#### Save the resulting model to a Hugging Face pretrained language model. (Ready to upload to the Hub!)
```python
trainer.save('/path/to/output/folder/')
```

#### Use 🤗 Accelerate to launch distributed training

```bash
Expand Down

0 comments on commit 24b041a

Please sign in to comment.