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

[integration] Add support for Transformers v4.46.0 #3026

Merged

Conversation

tomaarsen
Copy link
Collaborator

Resolves #3021

Hello!

Pull Request overview

  • Add support for Transformers v4.46.0:
    1. Use "processing_class" argument instead of "tokenizers" if transformers is at >= 4.46.0
    2. Add an unused num_items_in_batch argument to compute_loss

Details

I've made two small changes to add support with the new transformers v4.46.0.
The first issue is due to huggingface/transformers#32385
The second is due to huggingface/transformers#34198 cc @muellerzr

Thanks for reporting @dipanjanS! cc @BelisaDi as you also commented in #3021

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 96052ad into UKPLab:master Oct 29, 2024
11 checks passed
@tomaarsen tomaarsen deleted the integration/transformers_4_46_support branch October 29, 2024 10:45
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.

Issue in fine-tuning Embedding models in Sentence Transformers with newer versions
1 participant