Skip to content

Commit 5668561

Browse files
committed
Update weights_only due to change in default in torch>=2.6
Signed-off-by: Logan Adams <[email protected]>
1 parent b90ffab commit 5668561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/DeepSpeed-Chat/dschat/utils/data/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def create_prompt_dataset(local_rank,
375375
torch.save(train_dataset, train_fname)
376376
torch.save(eval_dataset, eval_fname)
377377
torch.distributed.barrier()
378-
return torch.load(train_fname), torch.load(eval_fname)
378+
return torch.load(train_fname, weights_only=False), torch.load(eval_fname, weights_only=False)
379379

380380

381381
class DataCollatorReward:

0 commit comments

Comments
 (0)