Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a.khokhulin committed Nov 23, 2024
1 parent b38e9d9 commit a8d8f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbo_alignment/dataset/chat/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ def get_slice(self, start: int, end: int) -> Self:

new_instance.records = self.records[start:end]
new_instance.original_records_map = {
record['id']: self.get_original_record_by_id(record['id']) for record in dataset_records
record['id']: self.get_original_record_by_id(record['id'])
for record in dataset_records
}

return new_instance

0 comments on commit a8d8f10

Please sign in to comment.