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.33k stars 264 forks source link

加载Baichuan2-13B时出现TypeError: unsupported operand type(s) for |=: 'dict' and 'dict' #202

Closed Zscozer closed 9 months ago

Zscozer commented 9 months ago

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

问题类型 | Type of problem

其他问题 | Other issues

操作系统 | Operating system

Linux

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

No response

Dependencies

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

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

Traceback (most recent call last): File "server.py", line 2, in from api.models import app, EMBEDDED_MODEL, GENERATE_ENGINE File "/usr/local/xx/xxx/code/rag-chatbot-zhg/api-for-open-llm-master/api/models.py", line 157, in GENERATE_ENGINE = create_generate_model() File "/usr/local/xx/xxx/code/rag-chatbot-zhg/api-for-open-llm-master/api/models.py", line 49, in create_generate_model model, tokenizer = load_model( File "/usr/local/xx/xxx/code/rag-chatbot-zhg/api-for-open-llm-master/api/adapter/model.py", line 316, in load_model model, tokenizer = adapter.load_model( File "/usr/local/xx/xxx/code/rag-chatbot-zhg/api-for-open-llm-master/api/adapter/model.py", line 64, in load_model tokenizer_kwargs |= self.tokenizer_kwargs TypeError: unsupported operand type(s) for |=: 'dict' and 'dict'

xusenlinzy commented 9 months ago

python版本的问题,已经修复了,拉一下最新代码试试