Skip to content

Commit e67d0ef

Browse files
s-noghabiThe tunix Authors
authored andcommitted
add orpo_trainer test to build file
PiperOrigin-RevId: 915130387
1 parent 4f8d723 commit e67d0ef

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/sft/dpo/dpo_trainer_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def _dummy_dataset(
6464

6565
def _dummy_string_dataset(
6666
source: MySource,
67-
prompts: np.ndarray,
68-
chosen_responses: np.ndarray,
69-
rejected_responses: np.ndarray,
67+
prompts: list[str],
68+
chosen_responses: list[str],
69+
rejected_responses: list[str],
7070
return_dict=False,
7171
):
7272
ds = grain.MapDataset.source(source)

tests/sft/dpo/orpo_trainer_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def _dummy_dataset(
6363

6464
def _dummy_string_dataset(
6565
source: MySource,
66-
prompts: np.ndarray,
67-
chosen_responses: np.ndarray,
68-
rejected_responses: np.ndarray,
66+
prompts: list[str],
67+
chosen_responses: list[str],
68+
rejected_responses: list[str],
6969
return_dict=False,
7070
):
7171
ds = grain.MapDataset.source(source)

0 commit comments

Comments
 (0)