Collator fix

This commit is contained in:
Jake Poznanski 2025-06-29 19:52:53 +00:00
parent 12b5cc3101
commit dc7fff5bf7

View File

@ -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'])
}