We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9379cbd commit 0171884Copy full SHA for 0171884
applications/ColossalChat/coati/experience_maker/naive.py
@@ -140,7 +140,7 @@ def make_experience(
140
num_actions = 0
141
142
for inference_mini_batch_id in range(0, input_ids.size(0), self.inference_batch_size):
143
- s, e = inference_mini_batch_id, (inference_mini_batch_id + 1) * self.inference_batch_size
+ s, e = inference_mini_batch_id, inference_mini_batch_id + self.inference_batch_size
144
if input_ids[s:e].size(0) == 0:
145
break
146
sequences = generate(self.actor, input_ids[s:e], self.tokenizer, **generate_kwargs)
0 commit comments