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

Refactor ContrastiveDataset and ContrastiveDistillationDataset #579

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DemirTonchev
Copy link

@DemirTonchev DemirTonchev commented Dec 25, 2024

Refactor of ContrastiveDataset and ContrastiveDistillationDataset to generate pairs lazily. Also the trainer code is updated to create dataset from iterator. This targets how pairs are generated more motivation - #578

dataset = Dataset.from_generator(data_sampler.__iter__) this change allows to work with arbitrary big dataset (although the trade off is the cache on the disk managed by arrow dataset)

This also targets the ContrastiveDistillationDataset bug in #578

fixes: #578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant