LlamaFamily / Llama-Chinese

Llama中文社区,Llama3在线体验和微调模型已开放,实时汇总最新Llama3学习资料,已将所有代码更新适配Llama3,构建最好的中文Llama大模型,完全开源可商用
https://llama.family
14.01k stars 1.26k forks source link

完全按照原始代码 但是有这个错误 #266

Open xiaomingtx6 opened 11 months ago

xiaomingtx6 commented 11 months ago

Traceback (most recent call last): File "/gemini/code/finetune_clm_lora.py", line 690, in main() File "/gemini/code/finetune_clm_lora.py", line 651, in main train_result = trainer.train(resume_from_checkpoint=checkpoint) File "/usr/local/lib/python3.9/dist-packages/transformers/trainer.py", line 1555, in train return inner_training_loop( File "/usr/local/lib/python3.9/dist-packages/transformers/trainer.py", line 1910, in _inner_training_loop self.optimizer.step() AttributeError: 'DummyOptim' object has no attribute 'step'