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

MacM1平台模型加载不成功 #95

Open
Veken opened this issue Jun 25, 2023 · 2 comments
Open

MacM1平台模型加载不成功 #95

Veken opened this issue Jun 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Veken
Copy link

Veken commented Jun 25, 2023

一直提示模型加载不成功,点击发送,日志会报这个异常

Traceback (most recent call last):
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/gradio/routes.py", line 412, in run_predict
output = await app.get_blocks().process_api(
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1299, in process_api
result = await self.call_function(
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1021, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/app.py", line 215, in predict
resp = knowladge_based_chat_llm.get_knowledge_based_answer(
File "/Users/zego/LLMSDemo/LangChain-ChatGLM-Webui/app.py", line 102, in get_knowledge_based_answer
self.llm.temperature = temperature
AttributeError: 'NoneType' object has no attribute 'temperature'

@thomas-yanxin
Copy link
Member

MacM1没测试过。应该需要将加载模型这里改一下。

@ganisback
Copy link

@Veken 你成功了吗,我也失败了

@thomas-yanxin thomas-yanxin added the bug Something isn't working label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants