-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save error #1938
Comments
hi, i found an error : |
Thanks for reporting! Fixed in #1776 |
Thanks for replying but in Online DPO trainer if self.control.should_save: |
Thanks for reporting, fixed in #1946 |
state_dict = self.accelerator.get_state_dict(self.backup_model)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
if model.zero_gather_16bit_weights_on_model_save():
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
state_dict = self.accelerator.get_state_dict(self.backup_model)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
state_dict = self.accelerator.get_state_dict(self.backup_model)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
if model.zero_gather_16bit_weights_on_model_save():
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
state_dict = self.accelerator.get_state_dict(self.backup_model)
if model.zero_gather_16bit_weights_on_model_save():
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
state_dict = self.accelerator.get_state_dict(self.backup_model)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
if model.zero_gather_16bit_weights_on_model_save():
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
if model.zero_gather_16bit_weights_on_model_save():
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
state_dict = self.accelerator.get_state_dict(self.backup_model)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3240, in get_state_dict
if model.zero_gather_16bit_weights_on_model_save():
AttributeError: 'NoneType' object has no attribute 'zero_gather_16bit_weights_on_model_save'
1%| | 10/1250 [01:02<2:09:51, 6.28s/it]
save model error.
The text was updated successfully, but these errors were encountered: