Skip to content

Commit

Permalink
🧽 Fix typo in dataset format doc (#2259)
Browse files Browse the repository at this point in the history
doc update
  • Loading branch information
cameronphchen authored Oct 21, 2024
1 parent 92f6d24 commit 84dab85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/dataset_formats.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ dataset = dataset.remove_columns(["chosen", "rejected"])

### From explicit to implicit prompt preference dataset

To convert a preference dataset with implicit prompt into a preference dataset with explicit prompt, concatenate the prompt to both chosen and rejected, and remove the prompt.
To convert a preference dataset with explicit prompt into a preference dataset with implicit prompt, concatenate the prompt to both chosen and rejected, and remove the prompt.

```python
from datasets import Dataset
Expand Down

0 comments on commit 84dab85

Please sign in to comment.