Skip to content

Commit

Permalink
Import missing setup_chat_format (huggingface#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishav-hub authored and kashif committed Jul 28, 2024
1 parent bf21d08 commit a4272ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/sft_trainer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ The [`setup_chat_format`] function in `trl` easily sets up a model and tokenizer

```python
from transformers import AutoModelForCausalLM, AutoTokenizer
from trl import setup_chat_format

# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("facebook/opt-350m")
Expand Down

0 comments on commit a4272ce

Please sign in to comment.