mirror of
https://github.com/allenai/olmocr.git
synced 2025-12-13 00:09:42 +00:00
weird dataloader stuff now
This commit is contained in:
parent
37f10051f6
commit
e864b9d88f
@ -188,6 +188,9 @@ def run_train(config: TrainConfig):
|
||||
label_names=["labels"], # fix from https://github.com/huggingface/transformers/issues/22885
|
||||
max_grad_norm=config.hparams.clip_grad_norm,
|
||||
remove_unused_columns=False,
|
||||
accelerator_config={
|
||||
"dispatch_batches": False
|
||||
}
|
||||
)
|
||||
|
||||
# Set the collator
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user