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

Generalize dataset builders as families #752

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

RdoubleA
Copy link
Contributor

Context

By moving source to a parameter in the builder, we can genrealize dataset builders as "families" (i.e., alpaca family datasets, etc). Also update docstrings.

Test plan

CI

image

Copy link

pytorch-bot bot commented Apr 15, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/752

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 6df4e79 with merge base 26223e9 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 15, 2024

Returns:
PreferenceDataset: The preference dataset built from StackExchange paired data.
PreferenceDataset: The preference datßaset built from source paired data.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
PreferenceDataset: The preference datßaset built from source paired data.
PreferenceDataset: The preference dataset built from source paired data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot for the life of me tell you how that happened

@@ -149,7 +149,7 @@ def format(

class StackExchangedPairedTemplate(InstructTemplate):
"""
Prompt template for the StackExchangedPaired dataset.
Prompt template for preference datasets similar to StackExchanged paired.
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right

@RdoubleA RdoubleA merged commit d7f5b34 into main Apr 15, 2024
18 checks passed
@RdoubleA RdoubleA deleted the rafiayub/dataset_families branch April 15, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants