System Info
Environment:
- OS: Windows 11
- Python Version: 3.12 (Anaconda)
- Library Version: infinity-emb[all] (Latest)
- Installation Command: pip install infinity-emb[all]
Information
Tasks
Reproduction
Description:
I am encountering a ModuleNotFoundError when trying to run the infinity_emb v2 --help command on Windows, even after installing with the [all] extra.
Steps to Reproduce:
- Create a new conda/python environment.
- Run
pip install "infinity-emb[all]".
- Run
infinity_emb v2 --help.
Error Traceback:
Traceback (most recent call last):
...
File "...\infinity_emb\transformer\classifier\torch.py", line 8, in <module>
from infinity_emb.transformer.acceleration import (
File "...\infinity_emb\transformer\acceleration.py", line 11, in <module>
from optimum.bettertransformer import ( # type: ignore[import-untyped]
ModuleNotFoundError: No module named 'optimum.bettertransformer'
Additional Context:
It seems that optimum is installed, but optimum.bettertransformer is either not found or not correctly bundled in the Windows installation of the dependency tree. Manually installing optimum does not seem to resolve the specific import error within acceleration.py.
System Info
Environment:
Information
Tasks
Reproduction
Description:
I am encountering a
ModuleNotFoundErrorwhen trying to run theinfinity_emb v2 --helpcommand on Windows, even after installing with the[all]extra.Steps to Reproduce:
pip install "infinity-emb[all]".infinity_emb v2 --help.Error Traceback:
Additional Context:
It seems that
optimumis installed, butoptimum.bettertransformeris either not found or not correctly bundled in the Windows installation of the dependency tree. Manually installingoptimumdoes not seem to resolve the specific import error withinacceleration.py.