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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing type-hints in SetFitTrainer #397

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

alvarobartt
Copy link
Member

Hi to whoever is reading this! 馃

What's in this PR?

This PR adds some missing type-hints in SetFitTrainer, as spotted while playing around with setfit with @gabrielmbmb

Co-authored-by: Gabriel Martin <gmartinbdev@gmail.com>
@tomaarsen
Copy link
Member

These are some strange errors... Not sure why it does work on 3.7. Can't easily reproduce this as it uses CUDA for me locally.

@tomaarsen
Copy link
Member

I still can't reproduce it when forcing the model to CPU before sending it through openvino.

@alvarobartt
Copy link
Member Author

Hmm true, just changed the type-hints but didn't look at the errors, I can dig deeper if needed, just let me know if you need a helping hand 馃槃 @tomaarsen

@tomaarsen
Copy link
Member

Fixed the CI issues, thanks for these code quality improvements!

@tomaarsen tomaarsen merged commit 1b076bd into huggingface:main Jul 25, 2023
18 checks passed
@alvarobartt alvarobartt deleted the patch-1 branch September 6, 2023 12:38
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.

None yet

2 participants