lyogavin / airllm

AirLLM 70B inference with single 4GB GPU
Apache License 2.0
4.82k stars 391 forks source link

使用时报错cannot import name 'cached_path' from 'transformers',或许和transformers的版本有关?我的版本是transformers-4.35.2 #54

Closed sunzhaoyang1 closed 11 months ago

sunzhaoyang1 commented 11 months ago

Traceback (most recent call last): File "D:\TCM_LLM\TCM-CHAT.PY", line 8, in from transformers import cached_path, HfFolder ImportError: cannot import name 'cached_path' from 'transformers' (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers__init__.py)

sunzhaoyang1 commented 11 months ago

我自己代码的问题