Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VLM] Update pixtral data collator to reflect latest transformers cha…
…nges (#1116) ## Purpose ## * In transformers==4.48.0, the Pixtral processor was updated to not add an additional layer of wrapping for `pixel_values` (huggingface/transformers#34801). This is more inline with how other processors handle multimodal inputs * Because previously the data_collator was being used to unwrap this unnecessary wrapping, attempting to quantize pixtral with transformers>=4.48.0 fails ## Changes ## * Update pixtral data collator to match latest transformers version * Add comment for those who want to use transformers<4.48.0 ## Testing ## * Ran pixtral example to completion, @shubhra ran pixtral large --------- Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
- Loading branch information