wenda-LLM / wenda

闻达:一个LLM调用平台。目标为针对特定环境的高效内容生成,同时考虑个人和中小企业的计算资源局限性,以及知识安全和私密性问题
GNU Affero General Public License v3.0
6.23k stars 810 forks source link

运行rwkv模型时出现 'NoneType' object is not callable 的错误 #437

Closed ahsisnwk closed 1 year ago

ahsisnwk commented 1 year ago

ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 238, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\fastapi\applications.py", line 270, in call await super().call(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\applications.py", line 124, in call await self.middleware_stack(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\middleware\errors.py", line 149, in call await self.app(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\middleware\base.py", line 25, in call await self.app(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\routing.py", line 706, in call await route.handle(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "E:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\fastapi\routing.py", line 287, in app await dependant.call(**values) File "E:\wenda\wenda\wenda.py", line 334, in websocket_endpoint raise e File "E:\wenda\wenda\wenda.py", line 323, in websocket_endpoint for response in LLM.chat_one(prompt, history_formatted, max_length, top_p, temperature, data): File "E:\wenda\wenda\llms\llm_rwkv.py", line 227, in chat_one args = PIPELINE_ARGS(temperature=max(0.2, float(temperature)), top_p=float(top_p), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not callable

l15y commented 1 year ago

模型没加载