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

[Trainer] Fix default data collator #30142

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

NielsRogge
Copy link
Contributor

What does this PR do?

This PR isolates a fix proposed in #30129, namely the DataCollatorWithPadding only needs to be used in case a tokenizer is being passed and is effectively a tokenizer or feature extractor, not another object like an image processor.

@NielsRogge NielsRogge requested a review from amyeroberts April 9, 2024 10:00
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks!

@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.

@NielsRogge NielsRogge merged commit ba1b24e into huggingface:main Apr 9, 2024
21 checks passed
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* Fix data collator

* Support feature extractors as well
itazap pushed a commit that referenced this pull request May 14, 2024
* Fix data collator

* Support feature extractors as well
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