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

feat: allow cpu device even if gpu available #3417

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

drbh
Copy link
Contributor

@drbh drbh commented Mar 8, 2024

This PR updates the init to check if FLAIR_DEVICE="cpu" and will use the cpu even on a system with cuda available. Currently its not possible to use flair on your cpu if you have a gpu which may be undesirable when managing memory

drbh added 2 commits March 8, 2024 15:30
respect if `FLAIR_DEVICE="cpu"` even on system with cuda available
@drbh
Copy link
Contributor Author

drbh commented Mar 11, 2024

bumping and tagging @alanakbik for visibility 🙏

Copy link
Collaborator

@helpmefindaname helpmefindaname left a comment

Choose a reason for hiding this comment

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

The failing pipeline is unrelated to the PR, and can be fixed by rebasing on the main branch.

Thank you for your contribution and sorry for the delayed answer.

@helpmefindaname helpmefindaname merged commit 72dc4ad into flairNLP:master Mar 29, 2024
1 check failed
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.

2 participants