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

Switch InterleaveDataset to use weights (e.g., 2.0, 0.5, etc) #140

Merged
merged 18 commits into from
Oct 26, 2024

Conversation

juberti
Copy link
Contributor

@juberti juberti commented Oct 18, 2024

This makes it easy to control how many epochs a given dataset is used for, and makes interleaving always deterministic (we always vend from the least-used dataset).

As part of this I removed the stop-strategy member, as it doesn't really make sense in this new context. LMK if I'm misunderstanding things.

Related to #105

Copy link
Contributor

@liPatrick liPatrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, and I think if we need to extend this to use the stop strategy in the future your approach lets us do that pretty easily.

ultravox/data/datasets.py Show resolved Hide resolved
ultravox/data/datasets.py Show resolved Hide resolved
ultravox/data/datasets.py Show resolved Hide resolved
ultravox/data/datasets.py Show resolved Hide resolved
@juberti juberti merged commit 041c4fe into main Oct 26, 2024
1 check passed
@farzadab farzadab deleted the juberti/weights branch October 28, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants