You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GradCache method allows to scale the effective batch size of contrastive loss with a constant requirement in memory, overcoming the issue of gradient accumulation not being equivalent to larger bs for contrastive loss.
I think it would be a nice addition for people training ColBERT models with contrastive and not distillation.
The GradCache method allows to scale the effective batch size of contrastive loss with a constant requirement in memory, overcoming the issue of gradient accumulation not being equivalent to larger bs for contrastive loss.
I think it would be a nice addition for people training ColBERT models with contrastive and not distillation.
As it is already implemented in Sentence Transformer, adding it to PyLate should be straightforward.
I think you already experimented with it @raphaelsty, so maybe you can take this one?
cc @tomaarsen
The text was updated successfully, but these errors were encountered: