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

Include rationale of the model responses on prepare_dataset if available #317

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Jan 31, 2024

Description

This PR updates the dataset.utils.prepare_dataset function to include the rationale of the model chosen/rejected, if the rationale is available in the original dataset (aside from the tests, tested locally it works with the disticoder-dpo dataset).

If rationale is available in the dataset (the PreferenceTasks that generate it will add it to the dataset), the binarized dataset will contain the columns chosen_rationale and rejected_rationale.

Closes #316.

@plaguss plaguss requested a review from dvsrepo January 31, 2024 13:05
@plaguss plaguss self-assigned this Jan 31, 2024
@plaguss plaguss added this to the 0.5.0 milestone Jan 31, 2024
@plaguss plaguss added the enhancement New feature or request label Jan 31, 2024
@plaguss plaguss changed the title Include rationale of the model responses on prepare dataset if available Include rationale of the model responses on prepare_dataset if available Jan 31, 2024
@plaguss plaguss merged commit 6ae835d into main Jan 31, 2024
4 checks passed
@plaguss plaguss deleted the feat/keep-rationales-on-prepare-dataset branch January 31, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Keep rationales if available when binarizing/sfting the dataset
1 participant