AttributeError: 'BaichuanConfig' object has no attribute 'z_loss_weight'

#12
by yangzhengyu - opened

At line 709 in modeling_baichuan.py: z_loss = self.config.z_loss_weight * softmax_normalizer.mean(), it attempts to use the attribute z_loss_weight, but the BaichuanConfig class in configuration_baichuan.py seems to have forgotten to define the z_loss_weight attribute.

I have also encountered this problem. Have you solved it?

Sign up or log in to comment