VisualGLM-6B icon indicating copy to clipboard operation
VisualGLM-6B copied to clipboard

qlora微调报错,有没有大神

Open 50czy opened this issue 1 year ago • 4 comments

NameError: free variable 'dtype' referenced before assignment in enclosing scope

50czy avatar Nov 12 '24 14:11 50czy

me too

fak111 avatar Feb 08 '25 08:02 fak111

Image

fak111 avatar Feb 08 '25 08:02 fak111

I've fixed it by adding code in line 88 of sat/lora2.py

Image

AqiuNoCold avatar Apr 02 '25 15:04 AqiuNoCold

also you can try to update your lora2.py by https://github.com/THUDM/SwissArmyTransformer. It's really confusing that pip install SwingArmyTransfomer couldn't give me the latest version. )W_W(

AqiuNoCold avatar Apr 03 '25 04:04 AqiuNoCold