Skip to content

Commit 71a0181

Browse files
author
Tong Li
committed
update reward
1 parent 754b16d commit 71a0181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/ColossalChat/coati/distributed/reward/verifiable_reward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __call__(
2121
# Get batch size
2222
bs = input_ids.size(0)
2323
# Initialize reward
24-
rewards = torch.zeros(bs, device=input_ids.device)
24+
rewards = torch.zeros((bs, 3), device=input_ids.device)
2525

2626
# Loop through reward functions
2727
for reward_fn in self.reward_fns:

0 commit comments

Comments
 (0)