-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure package (cont.) #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments - essentially what we were saying, might as well have the processing funcs in each model's processor
colpali_engine/models/late_interaction/colpali/processing_colpali.py
Outdated
Show resolved
Hide resolved
colpali_engine/models/late_interaction/colidefics/processing_colidefics.py
Outdated
Show resolved
Hide resolved
If code is tested and runs, LGTM. |
54cc1fd
to
30ea174
Compare
@ManuelFay Made some extra code cleanup, and mostly importantly I've added some tests! 🎉 As discussed, I'll create a dev pre-release to test our package before shipping it to |
17ea996
to
d9f887e
Compare
Main comment here is that since it's mainly aesthetic, we can merge into main but no need to push a new tag until we have real breaking functionality (like configs). until then, I don't think it's worth the hassle for people to bump their version since everything is basically iso |
colpali_engine/models/late_interaction/colpali/modeling_colpali.py
Outdated
Show resolved
Hide resolved
colpali_engine/models/late_interaction/colidefics/processing_colidefics.py
Outdated
Show resolved
Hide resolved
colpali_engine/models/late_interaction/colpali/modeling_colpali.py
Outdated
Show resolved
Hide resolved
06377ee
to
67135cc
Compare
67135cc
to
ec32192
Compare
* add: scorer in processor * fix: lint * fix: tests * fix: bugs * fix: tests pass * fix: lint * fix: tony's coms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - you decide what to do with the device = "auto"
but we can merge this bug PR and get on with our lives haha
In the end I went with your way of doing it, I just made it a bit more clear in the code 👍🏼 |
I've added some minor fixes. Once the test have passed, I'll squash, merge the PR and finally release v0.3.0! 😉 |
Description
Continue package restructuration from #28.
Added
Processor
classes to easily process images and/or queriesCustomRetrievalEvaluator
Changed
transformers
architecturepyproject.toml
black
with theruff
linterRemoved
TextRetrieverCollator
HardNegDocmatixCollator
Fixed