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

dynamically import dependencies #853

Closed
MXueguang opened this issue Oct 30, 2021 · 1 comment
Closed

dynamically import dependencies #853

MXueguang opened this issue Oct 30, 2021 · 1 comment

Comments

@MXueguang
Copy link
Member

e.g. tevatron uses pyserini for evaluation, EntityQuestion uses pyserini for bm25 search.
in those case, its not make sense to let user install faiss/torch/onnxruntime etc.
we can utilize transformers utils is_backend_avaliable and requires_backend to dynamically import dependencies

@lintool
Copy link
Member

lintool commented Oct 15, 2024

Superseded by refactoring in #2006 #2009 and related issues. Closing.

@lintool lintool closed this as completed Oct 15, 2024
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

No branches or pull requests

2 participants