Skip to content

Conversation

@capemox
Copy link
Contributor

@capemox capemox commented Mar 22, 2025

What does this PR do?

Fixes #36655

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?

@Rocketknight1 should review this!

@github-actions github-actions bot marked this pull request as draft March 22, 2025 13:04
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. When it is ready for review, please click the Ready for review button (at the bottom of the PR page).

@capemox capemox marked this pull request as ready for review March 22, 2025 13:16
@capemox
Copy link
Contributor Author

capemox commented Mar 24, 2025

@Rocketknight1 ready for review now! Had to sort a couple of issues

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

Yep, this LGTM! Thank you!

capemox added 3 commits March 24, 2025 16:35
…ote tests.

Also fixed bugs where the code hardcoded values for mask replacement probability and random replacement probability, instead of using the values passed by the user.
@Rocketknight1 Rocketknight1 force-pushed the add-seed-for-data-collator-for-whole-word-mask branch from ebf9b7c to 3078ef3 Compare March 24, 2025 16:35
@Rocketknight1 Rocketknight1 merged commit 48385aa into huggingface:main Mar 24, 2025
23 checks passed
@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.

zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
…#36903)

* Added support for seed in `DataCollatorForWholeWordMask`, and also wrote tests.

Also fixed bugs where the code hardcoded values for mask replacement probability and random replacement probability, instead of using the values passed by the user.

* formatting issues

* Used better way to generate seed in TF. Made tests more consistent.
soghomon-b pushed a commit to soghomon-b/transformers that referenced this pull request Aug 24, 2025
…#36903)

* Added support for seed in `DataCollatorForWholeWordMask`, and also wrote tests.

Also fixed bugs where the code hardcoded values for mask replacement probability and random replacement probability, instead of using the values passed by the user.

* formatting issues

* Used better way to generate seed in TF. Made tests more consistent.
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.

Add seed to data collator classes

3 participants