mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-12 16:52:20 +00:00
Collator fix
This commit is contained in:
parent
12b5cc3101
commit
dc7fff5bf7
@ -68,7 +68,7 @@ class QwenDataCollator:
|
||||
'input_ids': torch.stack(batch['input_ids']),
|
||||
'attention_mask': torch.stack(batch['attention_mask']),
|
||||
'labels': torch.stack(batch['labels']),
|
||||
'pixel_values': batch['pixel_values'], # Keep as list for now
|
||||
'pixel_values': torch.stack(batch['pixel_values']), # Stack into tensor
|
||||
'image_grid_thw': torch.stack(batch['image_grid_thw'])
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user