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

🏛️ Improve DPO configuration documentation structure #2561

Merged
merged 5 commits into from
Jan 12, 2025

Conversation

qgallouedec
Copy link
Member

@qgallouedec qgallouedec commented Jan 11, 2025

What does this PR do?

Before
Screenshot 2025-01-11 at 17 46 55
After
Screenshot 2025-01-11 at 17 46 30

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a GitHub issue? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment on lines -495 to -500
with self.assertRaisesRegex(
ValueError,
expected_regex=r"Can't find `pad_token_id` in the `processing_class`. "
r"Explicitly set `tokenizer.pad_token` \(e.g. `tokenizer.pad_token = tokenizer.eos_token`\) "
r"before instantiating the trainer.",
):
Copy link
Member Author

@qgallouedec qgallouedec Jan 11, 2025

Choose a reason for hiding this comment

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

probably an error: we aren't supposed to test this here, but the num_proc (test_dpo_trainer_w_dataset_num_proc)

Comment on lines -460 to -462
expected_regex=r"Can't find `pad_token_id` in the `processing_class`. "
r"Explicitly set `tokenizer.pad_token` \(e.g. `tokenizer.pad_token = tokenizer.eos_token`\) "
r"before instantiating the trainer.",
Copy link
Member Author

Choose a reason for hiding this comment

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

new error message

@qgallouedec
Copy link
Member Author

qgallouedec commented Jan 11, 2025

CI fails, I think we can ignore, see #2558 (comment)

Copy link
Collaborator

@August-murr August-murr left a comment

Choose a reason for hiding this comment

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

Cewl!
It would also be helpful to include instructions for generating the documentation in the contribution guideline
you know, for the community.🙄

@qgallouedec
Copy link
Member Author

qgallouedec commented Jan 12, 2025

Good point, done in 43089fa

@qgallouedec qgallouedec merged commit 751fb1d into main Jan 12, 2025
12 of 14 checks passed
@qgallouedec qgallouedec deleted the better-structure-dpo-config branch January 12, 2025 14:23
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.

3 participants