Skip to content

Commit

Permalink
minor fix for missing chat attr (#6671)
Browse files Browse the repository at this point in the history
Signed-off-by: arendu <adithya.r@gmail.com>
  • Loading branch information
arendu authored May 18, 2023
1 parent 78fe893 commit 8aa80ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _build_dataset(self, data_cfg, is_train=True):
num_train_samples_per_dataset = [[None]] * len(data_cfg.file_names)

for file_path, num_samples in zip(data_cfg.file_names, num_train_samples_per_dataset):
if self.cfg.data.chat:
if self.cfg.data.get("chat", False):
dataset_cls = GPTSFTChatDataset
else:
dataset_cls = GPTSFTDataset
Expand Down

0 comments on commit 8aa80ee

Please sign in to comment.