Skip to content
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

Chunked sigmoid loss instead of cross-entropy #20

Open
PaulScotti opened this issue May 31, 2023 · 0 comments
Open

Chunked sigmoid loss instead of cross-entropy #20

PaulScotti opened this issue May 31, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed moderate-difficulty

Comments

@PaulScotti
Copy link
Collaborator

What is chunked sigmoid loss? See this twitter thread (it even contains code for implementation! (albeit in JAX)): https://twitter.com/borisdayma/status/1663269506289135616

Changing cross-entropy loss to sigmoid would allow us to calculate contrastive loss independently on each device (assuming we are using multi-gpu) without all-gather operations (which cost mem + compute).

@PaulScotti PaulScotti added enhancement New feature or request help wanted Extra attention is needed moderate-difficulty labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed moderate-difficulty
Projects
None yet
Development

No branches or pull requests

1 participant