Skip to content

Commit

Permalink
[BugFix] Fix RLHF tests - transformers v4.34 (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Oct 4, 2023
1 parent 22fd5ba commit 02cd86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_rlhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def test_tensordict_tokenizer(
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("gpt2")
tokenizer.pad_token = 100
tokenizer.pad_token = "-pad-"
process = TensorDictTokenizer(
tokenizer,
max_length=max_length,
Expand Down Expand Up @@ -313,7 +313,7 @@ def test_prompt_tensordict_tokenizer(
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("gpt2")
tokenizer.pad_token = 100
tokenizer.pad_token = "-pad-"
process = PromptTensorDictTokenizer(
tokenizer,
max_length=max_length,
Expand Down

0 comments on commit 02cd86e

Please sign in to comment.