Skip to content

Commit

Permalink
remove datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada authored Jun 17, 2024
1 parent 4f40528 commit df7991a
Showing 1 changed file with 0 additions and 68 deletions.
68 changes: 0 additions & 68 deletions tests/test_kto_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,74 +82,6 @@ def _init_dummy_dataset(self):
# fmt: on
return Dataset.from_dict(dummy_dataset_dict)

def _init_dummy_dataset_only_desirable(self):
# fmt: off
dummy_dataset_unbalanced_dict = {
"prompt": [
"Hey, hello",
"How are you",
"What is your name?",
"What is your name?",
"Which is the best programming language?",
"Which is the best programming language?",
"Which is the best programming language?",
],
"completion": [
"hi nice to meet you",
"leave me alone",
"I don't have a name",
"My name is Mary",
"Python",
"C++",
"Java",
],
"label": [
True,
True,
True,
True,
True,
True,
True,
],
}
# fmt: on
return Dataset.from_dict(dummy_dataset_unbalanced_dict)

def _init_dummy_dataset_no_desirable(self):
# fmt: off
dummy_dataset_unbalanced_dict = {
"prompt": [
"Hey, hello",
"How are you",
"What is your name?",
"What is your name?",
"Which is the best programming language?",
"Which is the best programming language?",
"Which is the best programming language?",
],
"completion": [
"hi nice to meet you",
"leave me alone",
"I don't have a name",
"My name is Mary",
"Python",
"C++",
"Java",
],
"label": [
False,
False,
False,
False,
False,
False,
False,
],
}
# fmt: on
return Dataset.from_dict(dummy_dataset_unbalanced_dict)

@parameterized.expand(
[
["gpt2", "kto", True, True],
Expand Down

0 comments on commit df7991a

Please sign in to comment.