yuanjie-ai / ChatLLM

轻松玩转LLM兼容openai&langchain,支持文心一言、讯飞星火、腾讯混元、智谱ChatGLM等
https://yuanjie-ai.github.io/ChatLLM/
MIT License
430 stars 54 forks source link

ImportError: cannot import name 'clear_cuda_cache' from 'meutils.decorators' #4

Closed cristianohello closed 1 year ago

cristianohello commented 1 year ago

Traceback (most recent call last): File "/root/autodl-tmp/chatglm/ChatLLM-master/zystest.py", line 2, in from chatllm.applications import ChatBase File "/root/autodl-tmp/chatglm/ChatLLM-master/chatllm/applications/init.py", line 11, in from chatllm.applications.chatbase import ChatBase File "/root/autodl-tmp/chatglm/ChatLLM-master/chatllm/applications/chatbase.py", line 12, in from meutils.decorators import clear_cuda_cache ImportError: cannot import name 'clear_cuda_cache' from 'meutils.decorators' (/root/miniconda3/envs/chatglm20230401/lib/python3.9/site-packages/meutils/decorators/init.py)

yuanjie-ai commented 1 year ago

更新下meutils

发自我的iPhone

------------------ Original ------------------ From: cristianohello @.> Date: Thu,May 4,2023 3:28 PM To: yuanjie-ai/ChatLLM @.> Cc: Subscribed @.***> Subject: Re: [yuanjie-ai/ChatLLM] ImportError: cannot import name'clear_cuda_cache' from 'meutils.decorators' (Issue #4)

Traceback (most recent call last): File "/root/autodl-tmp/chatglm/ChatLLM-master/zystest.py", line 2, in from chatllm.applications import ChatBase File "/root/autodl-tmp/chatglm/ChatLLM-master/chatllm/applications/init.py", line 11, in from chatllm.applications.chatbase import ChatBase File "/root/autodl-tmp/chatglm/ChatLLM-master/chatllm/applications/chatbase.py", line 12, in from meutils.decorators import clear_cuda_cache ImportError: cannot import name 'clear_cuda_cache' from 'meutils.decorators' (/root/miniconda3/envs/chatglm20230401/lib/python3.9/site-packages/meutils/decorators/init.py)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>