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

'AutoModel' object has no attribute 'config' when using Speech_Paraformer-Large on NPU #12412

Open
fanyhchn opened this issue Nov 16, 2024 · 1 comment

Comments

@fanyhchn
Copy link

Traceback (most recent call last):
File "D:\projects\ipex-llm\python\llm\example\NPU\HF-Transformers-AutoModels\Multimodal\speech_paraformer-large.py", line 44, in
model = AutoModel(
File "D:\miniforge3\envs\llm_para\lib\site-packages\ipex_llm\transformers\npu_model.py", line 616, in init
self.model = self.from_pretrained(*args, **kwargs)
File "D:\miniforge3\envs\llm_para\lib\unittest\mock.py", line 1379, in patched
return func(*newargs, **newkeywargs)
File "D:\miniforge3\envs\llm_para\lib\site-packages\ipex_llm\transformers\npu_model.py", line 170, in from_pretrained
model.config.update({"optimize_model": optimize_model})
AttributeError: 'AutoModel' object has no attribute 'config'

@sgwhat
Copy link
Contributor

sgwhat commented Nov 19, 2024

Hi @fanyhchn , we have identified your issue and are currently working on a fix. You may install the latest version of ipex-llm[npu] tomorrow to get the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants