You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to train the LISA-7B while stuck with this error: AttributeError: 'LISAForCausalLM' object has no attribute 'ce_loss_weight'
This is because of the following codes in model/LISA.py:
Since in config, train_mask_decoder is set to True, so self.ce_loss_weight is not initialized. Is this a bug of the training code or did I make any mistake with the training config?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, do you want to train further with LISA as the base model?
Hi, thanks for the reply.
Yes, I tried to run train_ds.py and met the issue.
I tried to solve it by changing if not hasattr(config, "train_mask_decoder"): to if hasattr(config, "train_mask_decoder"):, and afterward I could run the code. However, I still don't know why the original code had that issue.
Hi, thanks for the reply. Yes, I tried to run train_ds.py and met the issue. I tried to solve it by changing if not hasattr(config, "train_mask_decoder"): to if hasattr(config, "train_mask_decoder"):, and afterward I could run the code. However, I still don't know why the original code had that issue.
Thanks a lot, I ran into the same problem and solved it by your method.
Hi, I'm trying to train the LISA-7B while stuck with this error:
AttributeError: 'LISAForCausalLM' object has no attribute 'ce_loss_weight'
This is because of the following codes in model/LISA.py:
Since in config, train_mask_decoder is set to True, so self.ce_loss_weight is not initialized. Is this a bug of the training code or did I make any mistake with the training config?
Thanks.
The text was updated successfully, but these errors were encountered: