Skip to content

Commit dc7fff5

Browse files
committed
Collator fix
1 parent 12b5cc3 commit dc7fff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

olmocr/train/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __call__(self, examples):
6868
'input_ids': torch.stack(batch['input_ids']),
6969
'attention_mask': torch.stack(batch['attention_mask']),
7070
'labels': torch.stack(batch['labels']),
71-
'pixel_values': batch['pixel_values'], # Keep as list for now
71+
'pixel_values': torch.stack(batch['pixel_values']), # Stack into tensor
7272
'image_grid_thw': torch.stack(batch['image_grid_thw'])
7373
}
7474

0 commit comments

Comments
 (0)