[Fuyu] Replace it to BatchFeature#27109
Conversation
ArthurZucker
left a comment
There was a problem hiding this comment.
Thanks, Related to #27007 but not adressed in it, and cc @amyeroberts let's merge this for now just to be sure we have it
|
THanks ! |
|
The documentation is not available anymore as the PR was closed or merged. |
|
@younesbelkada Thanks for addressing this! If it's OK with you - can we hold off on this for a day or two? I'm currently working on refactoring the image processing and processing code for Fuyu and this will be addressed there too :) If you look at #27007 - you'll see that there's a custom |
|
If it's blocking - then we can merge this and I can rebase the changes into my working branch |
|
Thanks @amyeroberts your explanation makes sense to me! I was not aware of #27007 and it is great that this issue is being addressed there. |
|
Closing this PR as #27007 is going to be merged |
What does this PR do?
Right now users needs to manually loop over
FuyuProcessor's output and applytoto each element. One should useBatchFeaturefromimage_processing_utilsand calltodirectly to the processed elementsBefore this PR users needed to do:
To run inference on 4bit models
Now they just have to
cc @ArthurZucker
Script to run the model in 4bit: