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

Error in embedder Flag-Embedding example #1252

Open
FightingZhen opened this issue Nov 22, 2024 · 0 comments
Open

Error in embedder Flag-Embedding example #1252

FightingZhen opened this issue Nov 22, 2024 · 0 comments

Comments

@FightingZhen
Copy link

FightingZhen commented Nov 22, 2024

I am runing the embedder Flag-Embedding example code in https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/inference/embedder#1-auto-model on Ascend NPU, but find following error after scores computed:

Exception ignored in: <function AbsEmbedder.__del__ at 0xfffdd6418680>
Traceback (most recent call last):
  File "/path/FlagEmbedding/FlagEmbedding/abc/inference/AbsEmbedder.py", line 267, in __del__
  File "/path/FlagEmbedding/FlagEmbedding/abc/inference/AbsEmbedder.py", line 84, in stop_self_pool
  File "/home/anaconda3/envs/flag-embedding/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2880, in to
AttributeError: 'NoneType' object has no attribute 'HQQ'

By tracing the stack, I find the error occured in FlagEmbedding.abc.inference.AbsEmbedder.AbsEmbedder.stop_self_pool, can anyone help me solve this problem? thanks :-)

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

No branches or pull requests

1 participant