Skip to content

Commit

Permalink
remove-redundant-code
Browse files Browse the repository at this point in the history
  • Loading branch information
simonJJJ committed Dec 20, 2024
1 parent fd79b31 commit c63298f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions applications/DeepSpeed-Chat/dschat/utils/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,7 @@ def create_dataset_split(current_dataset, raw_dataset, train_phase, tokenizer,
padding="max_length",
truncation=True,
return_tensors="pt")
chosen_token["input_ids"] = chosen_token["input_ids"]
chosen_token["attention_mask"] = chosen_token["attention_mask"]
chosen_dataset.append(chosen_token)

reject_token["input_ids"] = reject_token["input_ids"]
reject_token["attention_mask"] = reject_token["attention_mask"]
reject_dataset.append(reject_token)
print(
f'Creating dataset {raw_dataset.dataset_name_clean} for {train_phase=} size={len(chosen_dataset)}'
Expand Down

0 comments on commit c63298f

Please sign in to comment.