-
Notifications
You must be signed in to change notification settings - Fork 210
ModuleNotFoundError: No module named 'neural_compressor.conf' #1689
Comments
I had a similar issue and solved it by creating a fresh venv and installing the packages from scratch. It seems that they have not checked the dependencies properly. I am looking to run things on CPU and these are the exact commands I used
|
I tried this but it still does not work.
|
if you downgrade to version 2.6 of the neural_compressor, this issue will go away because the 'conf' class exists there |
@redhavoc Thank you so much. Downgrade nerual_compressor works! |
not run |
Microsoft Windows [Version 10.0.22631.4112] C:\Users\ArabTech>cd C:\Users\ArabTech\Desktop\1 C:\Users\ArabTech\Desktop\1>cd intel-extension-for-transformers C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>python -m venv intel C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>source intel/bin/activate C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>intel/bin/activate C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>cd intel/bin/activate C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>activate.bat C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>intel\Scripts\activate (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>python -m pip install -r requirements-cpu.txt [notice] A new release of pip is available: 23.2.1 -> 24.2 (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>python.exe -m pip install --upgrade pip (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>pip install intel-extension-for-transformers accelerate datasets pydantic numba (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>pip install --upgrade neural_compressor==2.6 (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers> (intel) C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers>cd.. (intel) C:\Users\ArabTech\Desktop\1> (intel) C:\Users\ArabTech\Desktop\1> (intel) C:\Users\ArabTech\Desktop\1>python C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers\examples\huggingface\pytorch\translation\quantization\run_translation.py ^ (intel) C:\Users\ArabTech\Desktop\1>python C:\Users\ArabTech\Desktop\1\intel-extension-for-transformers\examples\huggingface\pytorch\translation\quantization\run_translation.py ^ (intel) C:\Users\ArabTech\Desktop\1> (intel) C:\Users\ArabTech\Desktop\1>python -m transformers.cli.translate ^ (intel) C:\Users\ArabTech\Desktop\1> |
Have put a working set of instructions. |
I followed the quick start guide, and an error occurred when I tried to run the python script. It seems to be an dependency error. I searched the internet and did not find any solution. How to solve this?
The text was updated successfully, but these errors were encountered: