Skip to content

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

Merged
tomaarsen merged 1 commit intohuggingface:masterfrom
tomaarsen:integration/transformers_4_46_support
Oct 29, 2024
Merged

[integration] Add support for Transformers v4.46.0#3026
tomaarsen merged 1 commit intohuggingface:masterfrom
tomaarsen:integration/transformers_4_46_support

Conversation

@tomaarsen
Copy link
Member

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 huggingface:master Oct 29, 2024
@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