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

Fixes longformer encoder by passing in pretrained_kwargs correctly #2963

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

arnavgarg1
Copy link
Contributor

The call to load_pretrained_hf_model was failing because we didn't use ** so it treated it as a positional argument, which didn't meet the function definition. This change fixes it!

I also double-checked this for all of the other text encoders and it looks like it should work correctly. Just this one has the error.

@arnavgarg1 arnavgarg1 requested a review from abidwael January 19, 2023 17:42
@arnavgarg1 arnavgarg1 merged commit bd4ad1b into master Jan 19, 2023
@arnavgarg1 arnavgarg1 deleted the longformer_encoder branch January 19, 2023 19:16
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