-
Notifications
You must be signed in to change notification settings - Fork 210
Error in import: ModuleNotFoundError: No module named 'neural_compressor.conf' #1695
Comments
Yes I'm facing the same issue |
Same issue - #1688 If anyone knows how to solve this please let me know! |
#1689 I found another closed issue with something similar but the solution didn't work for me. |
Hi, I also tried to install the 2.6 version of neural-compressor and indeed it no longer gives me the initial error. I don't know if it is the best method to solve the problem. Anyway after installing
But after downloading the model it gave me this error: So not a great step forward |
(1) C:\Users\ArabTech\Desktop\1>python run_translation.py --model_name_or_path "C:\Users\ArabTech\Desktop\1\google\flan-t5-small" --do_predict --source_lang en --target_lang ro --source_prefix "translate English to Romanian: " --input_file input.txt --output_file output.txt --per_device_eval_batch_size 4 --predict_with_generate (1) C:\Users\ArabTech\Desktop\1> |
Working EnvironmentThe following solution / approach is working on a defined configuration. Please make sure that you have the right GPU support installed on your system.
The following are installed. Make sure that you install the libraries as it is in the conda or pip env.
After you have installed the libraries in their respective versions ( it is imperative to follow so) I have run these code snippet
with the output as
|
Same problem, please help! @kevinintel |
same problem here ! |
I have installed intel-extension-for-transformer using
pip install intel-extension-for-transformers
but trying a little script to see if it worked I got this error :Traceback (most recent call last):
File "/home/nico/env/prov.py", line 2, in
from intel_extension_for_transformers.transformers import AutoModelForCausalLM
File "/home/nico/env/lib/python3.10/site-packages/intel_extension_for_transformers/transformers/init.py", line 19, in
from .config import (
File "/home/nico/env/lib/python3.10/site-packages/intel_extension_for_transformers/transformers/config.py", line 21, in
from neural_compressor.conf.config import (
ModuleNotFoundError: No module named 'neural_compressor.conf'
So I tried to install neural-compressor using
pip install neural-compressor[pt]
but nothing change.Then I tried to check if the conf module exist using with
python -c "import neural_compressor; print(dir(neural_compressor))"
and in fact it doesn't appear in the list.Please could you help me ? Where am I wrong ? Thank you in advance.
The text was updated successfully, but these errors were encountered: