Skip to content

Commit 87fe0e8

Browse files
committed
fix: code refactor
Signed-off-by: Mehant Kammakomati <mehant.kammakomati2@ibm.com>
1 parent 4e983ea commit 87fe0e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • plugins/online-data-mixing/src/fms_acceleration_odm/odm

plugins/online-data-mixing/src/fms_acceleration_odm/odm/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def update_sampling_weights(self, model, accelerator, state):
373373
),
374374
)
375375
rewards[c] += rc
376-
count[c] += batch["input_ids"].shape[0]
376+
count[c] += 1
377377
else:
378378
for batch in tqdm(
379379
eval_dataset_dict[self.id2cat[c]],

0 commit comments

Comments
 (0)