xusenlinzy / api-for-open-llm

Openai style api for open large language models, using LLMs just as chatgpt! Support for LLaMA, LLaMA-2, BLOOM, Falcon, Baichuan, Qwen, Xverse, SqlCoder, CodeLLaMA, ChatGLM, ChatGLM2, ChatGLM3 etc. 开源大模型的统一后端接口
Apache License 2.0
2.16k stars 252 forks source link

升级后报错 #264

Closed darvsum closed 2 months ago

darvsum commented 2 months ago

提交前必须检查以下项目 | The following items must be checked before submission

问题类型 | Type of problem

启动命令 | Startup command

操作系统 | Operating system

Linux

详细描述问题 | Detailed description of the problem

Traceback (most recent call last):
  File "/tools/codes/llm/server.py", line 2, in <module>
    from api.models import (
  File "/tools/codes/llm/api/models.py", line 192, in <module>
    EMBEDDING_MODEL, RERANK_MODEL = create_rag_models()
  File "/tools/codes/llm/api/models.py", line 48, in create_rag_models
    RAGEmbedding(SETTINGS.embedding_name, SETTINGS.embedding_device)
  File "/tools/codes/llm/api/rag/models/embedding.py", line 34, in __init__
    self.client = SentenceTransformer(
TypeError: SentenceTransformer.__init__() got an unexpected keyword argument 'trust_remote_code'

Dependencies

# 请在此处粘贴依赖情况
# Please paste the dependencies here

运行日志或截图 | Runtime logs or screenshots

# 请在此处粘贴运行日志
# Please paste the run log here
xusenlinzy commented 2 months ago

升级一下版本 pip install sentence-transformers -U