Skip to content

Validate the eval dataset in advance. - #33743

Merged
SunMarc merged 7 commits into
huggingface:mainfrom
jackyjinjing:eval_dataset_verify
Oct 1, 2024
Merged

SunMarc merged 7 commits into
huggingface:mainfrom
jackyjinjing:eval_dataset_verify

Conversation

@jackyjinjing

Copy link
Copy Markdown
Contributor

What does this PR do?

Validate whether the eval dataset is empty in advance to avoid wasting the time of training for one epoch only to discover this issue.

Fixes # (issue)
fix #33721

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 or the forum? 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, and
    here are tips on formatting docstrings.
  • 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.
@muellerzr and @SunMarc

@LysandreJik
LysandreJik requested a review from SunMarc September 27, 2024 09:35

@SunMarc SunMarc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for adding this @jackyjinjing ! Just a nit

Comment thread src/transformers/trainer.py Resolved
jackyjinjing and others added 2 commits September 27, 2024 20:55
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@SunMarc SunMarc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks !

@SunMarc
SunMarc requested a review from LysandreJik September 27, 2024 13:29

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome, thanks!

@SunMarc
SunMarc merged commit 5f9f58f into huggingface:main Oct 1, 2024
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* Validate the eval dataset in advance.

* format

* format

* format

* Update src/transformers/trainer.py

Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>

* format

---------

Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
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.

validation of the eval dataset should be done in advance

4 participants