Skip to content

Commit

Permalink
Update docs/source/detoxifying_a_lm.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
qgallouedec authored Sep 19, 2024
1 parent ca57ef2 commit 0830dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/detoxifying_a_lm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def filter_fn(sample):
toxicity = sample["prompt"]["toxicity"]
return toxicity is not None and toxicity > 0.3

train_dataset = dataset.filter(filter_fn, batched=False)
train_dataset = train_dataset.filter(filter_fn, batched=False)
```

### Reward function
Expand Down

0 comments on commit 0830dd7

Please sign in to comment.