Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Error in import: ModuleNotFoundError: No module named 'neural_compressor.conf' #1695

@Nicogs43

Description

@Nicogs43

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions