-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add Example for training ColBERT using Pylate in terms of contrastive way #164
base: main
Are you sure you want to change the base?
Conversation
Hello, I don't have my computer right now, but I also trained models using contrastive loss during the experiments for the paper and IIRC, the boilerplates from PyLate work out of the box if you just do not compile explicitely (as we compile internally as I specified in the other issue). So I think I rather prefer we do that, as I am not sure about the side effects the parameters of the inductor can have and we just don't need to compile explicitely (actually now the parameter to compile models in ST has been fixed, so even for the other models we should offload this using this parameter). |
@NohTow Yes, here, I used the Pylate boilerplate and worked pretty well out of the box when not explicitly compiling it. Have you any kinds of concerns not compiling the model when training as in my script? |
Not at all, especially as the ModernBERT is compiled by default (even if you do not call
As they are not needed if you do not have the |
Co-authored-by: Antoine Chaffin <[email protected]>
Co-authored-by: Antoine Chaffin <[email protected]>
Co-authored-by: Antoine Chaffin <[email protected]>
Co-authored-by: Antoine Chaffin <[email protected]>
Co-authored-by: Antoine Chaffin <[email protected]>
Co-authored-by: Antoine Chaffin <[email protected]>
@NohTow okay, request it again |
I took the liberty to modify a bit the script to make it closer to the other boilerplate on this repository. |
Changes