Could not estimate the number of tokens of the input, floating-point operations will not be computed
Traceback (most recent call last):
File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 643, in
main()
File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 615, in main
train_result = trainer.train(resume_from_checkpoint=checkpoint)
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1537, in train
return inner_training_loop(
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1881, in _inner_training_loop
self.optimizer.step()
AttributeError: 'DummyOptim' object has no attribute 'step'
Could not estimate the number of tokens of the input, floating-point operations will not be computed Traceback (most recent call last): File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 643, in
main()
File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 615, in main
train_result = trainer.train(resume_from_checkpoint=checkpoint)
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1537, in train
return inner_training_loop(
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1881, in _inner_training_loop
self.optimizer.step()
AttributeError: 'DummyOptim' object has no attribute 'step'
RewardTrainer是否支持deepspeed