Skip to content

Commit

Permalink
last line
Browse files Browse the repository at this point in the history
  • Loading branch information
a.khokhulin committed Nov 25, 2024
1 parent d8d811c commit 0ba6c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbo_alignment/dataset/pair_preferences/pair_preference.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(
read=False,
)
super().__init__(source=source, settings=settings, tokenizer=tokenizer)
self.settings: PairPreferenceDatasetSettings = settings

if read:
self._read()
Expand Down Expand Up @@ -124,4 +125,4 @@ def get_slice(self, start: int, end: int) -> Self:
record['id']: self.get_original_record_by_id(record['id']) for record in dataset_records
}

return new_instance
return new_instance

0 comments on commit 0ba6c6a

Please sign in to comment.