Skip to content

Commit 25319ad

Browse files
authored
fix: ODM dispatch (#647)
* Forcing split batches to be false and dispatch batches to be false Signed-off-by: romitjain <romit@ibm.com> * Making just dispatch batches false Signed-off-by: romitjain <romit@ibm.com> * Updated pyproject toml Signed-off-by: romitjain <romit@ibm.com> --------- Signed-off-by: romitjain <romit@ibm.com>
1 parent facbce8 commit 25319ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
{name = "Sukriti Sharma", email = "sukriti.sharma4@ibm.com"},
1414
{name = "Anh Uong", email = "anh.uong@ibm.com"},
1515
]
16-
license = "Apache-2.0"
16+
license = {text = "Apache-2.0"}
1717
readme = "README.md"
1818
requires-python = "~=3.9"
1919
keywords = ['fms-hf-tuning', 'python', 'tuning']

tuning/data/setup_dataprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def setup_train_dataset_for_odm(
561561
eval_batch_size=train_args.per_device_eval_batch_size,
562562
reward_type=odm_config.odm.reward_type,
563563
)
564-
train_args.accelerator_config = {"split_batches": True}
564+
train_args.accelerator_config = {"dispatch_batches": False}
565565
return (True, train_dataset, data_collator)
566566

567567

0 commit comments

Comments
 (0)