-
Notifications
You must be signed in to change notification settings - Fork 632
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
进程退出 cleanup 时抛出异常 #1358
Comments
FlagEmbedding/FlagEmbedding/abc/inference/AbsEmbedder.py Lines 99 to 108 in 0306f56
在进程退出时,这段 cleanup 代码会被执行,但这时候 |
你好,@patricksuo,谢谢你提出这个问题!我们的测试中还没有遇到过这类问题,可以麻烦你给一段代码帮助我们复现这个问题吗?谢谢! |
@hanhainebula from langchain_text_splitters import CharacterTextSplitter
from FlagEmbedding import BGEM3FlagModel
model = BGEM3FlagModel('BAAI/bge-m3', return_dense=True, return_sparse=True)
def search(query:str) :
query_vector = model.encode_queries([query], batch_size=8, return_dense=True, return_sparse=True, convert_to_numpy=True)['dense_vecs']
return query_vector
search("xxx") 进程退出时 |
今天再试了一下,比较奇怪,可能不是一个可以确定复现的问题。 |
环境:
The text was updated successfully, but these errors were encountered: