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

Install heavy dependencies (e.g. transformers, torch) on demand #53

Open
hlibbabii opened this issue Mar 26, 2021 · 1 comment
Open

Comments

@hlibbabii
Copy link
Member

hlibbabii commented Mar 26, 2021

Installation of Bohr takes a lot of time. This especially affects CI since it is run often. The solution is to install some dependencies on demand.

This could be done with the requires_extra functionality of setuptools. For example:

  • Among other dependencies, pip install 'bohr[classifiers]' would install transformers library, which is not installed by default;
  • pip install 'bohr[test]' would only be needed for development purposes to install dependencies to run tests.
@hlibbabii hlibbabii changed the title Make use of requires extra Install heavy dependencies (e.g. transformers, torch) on demand May 27, 2021
@hlibbabii
Copy link
Member Author

Related to #155, but there it's about external tools run by heuristics. This issue, however, is about python libs used by the framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant