transformers
transformers copied to clipboard
Fix cache type in Idefics2
What does this PR do?
Following #30716 this PR makes the return type of Idefics2 models' cache follow the same way, by returning the type we had in the input. Fixes #30631
Tested with the provided script that the training does not fail because of cache
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.