SCIR-HI / Med-ChatGLM

Repo for Chinese Medical ChatGLM 基于中文医学知识的ChatGLM指令微调
Apache License 2.0
968 stars 156 forks source link

modeling_chatglm.py里的quantize能用么?在run_clm.py里添加model.quantize(4)为什么报ImportError: attempted relative import with no known parent package错误 #42

Open chenxu126 opened 1 year ago

chenxu126 commented 1 year ago

Traceback (most recent call last): File "/home/skong/Fo-ChatGLM/run_clm.py", line 570, in main() File "/home/skong/Fo-ChatGLM/run_clm.py", line 433, in main model.quantize(4) File "/home/skong/Fo-ChatGLM/modeling_chatglm.py", line 1225, in quantize from .quantization import quantize ImportError: attempted relative import with no known parent package