facechain icon indicating copy to clipboard operation
facechain copied to clipboard

手动开启了lora增强,训练报错

Open 2016geek opened this issue 3 years ago • 1 comments

手动设置 lora_r=128 lora_alpha=64 执行训练报错

Traceback (most recent call last): File "/home/leon/project/facechain/facechain/train_text_to_image_lora.py", line 1166, in main() File "/home/leon/project/facechain/facechain/train_text_to_image_lora.py", line 932, in main accelerator._models[-1].load_state_dict(unet_state_dict) File "/home/leon/anaconda3/envs/facechain/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for AttnProcsLayers: size mismatch for layers.0.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.0.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.0.to_k_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.0.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.0.to_v_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.0.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.0.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.0.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.1.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.1.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.1.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.1.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.1.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.1.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.1.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.1.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.2.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.2.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.2.to_k_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.2.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.2.to_v_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.2.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.2.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.2.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.3.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.3.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.3.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.3.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.3.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.3.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.3.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.3.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.4.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.4.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.4.to_k_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.4.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.4.to_v_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.4.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.4.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.4.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.5.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.5.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.5.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.5.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.5.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.5.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.5.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.5.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.6.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.6.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.6.to_k_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.6.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.6.to_v_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.6.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.6.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.6.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.7.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.7.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.7.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.7.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.7.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.7.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.7.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.7.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.8.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.8.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.8.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.8.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.8.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.8.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.8.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.8.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.9.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.9.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.9.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.9.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.9.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.9.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.9.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.9.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.10.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.10.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.10.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.10.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.10.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.10.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.10.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.10.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.11.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.11.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.11.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.11.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.11.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.11.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.11.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.11.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.12.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.12.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.12.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.12.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.12.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.12.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.12.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.12.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.13.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.13.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.13.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.13.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.13.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.13.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.13.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.13.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.14.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.14.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.14.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.14.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.14.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.14.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.14.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.14.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.15.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.15.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.15.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.15.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.15.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.15.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.15.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.15.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.16.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.16.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.16.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.16.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.16.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.16.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.16.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.16.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.17.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.17.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.17.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.17.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.17.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.17.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.17.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.17.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.18.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.18.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.18.to_k_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.18.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.18.to_v_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.18.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.18.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.18.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.19.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.19.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.19.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.19.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.19.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.19.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.19.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.19.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.20.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.20.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.20.to_k_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.20.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.20.to_v_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.20.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.20.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.20.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.21.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.21.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.21.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.21.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.21.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.21.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.21.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.21.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.22.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.22.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.22.to_k_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.22.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.22.to_v_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.22.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.22.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.22.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.23.to_q_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.23.to_q_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.23.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.23.to_k_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.23.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.23.to_v_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.23.to_out_lora.down.weight: copying a param with shape torch.Size([4, 640]) from checkpoint, the shape in current model is torch.Size([64, 640]). size mismatch for layers.23.to_out_lora.up.weight: copying a param with shape torch.Size([640, 4]) from checkpoint, the shape in current model is torch.Size([640, 64]). size mismatch for layers.24.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.24.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.24.to_k_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.24.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.24.to_v_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.24.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.24.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.24.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.25.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.25.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.25.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.25.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.25.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.25.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.25.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.25.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.26.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.26.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.26.to_k_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.26.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.26.to_v_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.26.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.26.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.26.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.27.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.27.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.27.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.27.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.27.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.27.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.27.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.27.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.28.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.28.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.28.to_k_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.28.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.28.to_v_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.28.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.28.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.28.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.29.to_q_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.29.to_q_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.29.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.29.to_k_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.29.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.29.to_v_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.29.to_out_lora.down.weight: copying a param with shape torch.Size([4, 320]) from checkpoint, the shape in current model is torch.Size([64, 320]). size mismatch for layers.29.to_out_lora.up.weight: copying a param with shape torch.Size([320, 4]) from checkpoint, the shape in current model is torch.Size([320, 64]). size mismatch for layers.30.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.30.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.30.to_k_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.30.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.30.to_v_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.30.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.30.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.30.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.31.to_q_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.31.to_q_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.31.to_k_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.31.to_k_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.31.to_v_lora.down.weight: copying a param with shape torch.Size([4, 768]) from checkpoint, the shape in current model is torch.Size([64, 768]). size mismatch for layers.31.to_v_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). size mismatch for layers.31.to_out_lora.down.weight: copying a param with shape torch.Size([4, 1280]) from checkpoint, the shape in current model is torch.Size([64, 1280]). size mismatch for layers.31.to_out_lora.up.weight: copying a param with shape torch.Size([1280, 4]) from checkpoint, the shape in current model is torch.Size([1280, 64]). Traceback (most recent call last): File "/home/leon/anaconda3/envs/facechain/bin/accelerate", line 8, in sys.exit(main()) File "/home/leon/anaconda3/envs/facechain/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main args.func(args) File "/home/leon/anaconda3/envs/facechain/lib/python3.10/site-packages/accelerate/commands/launch.py", line 986, in launch_command simple_launcher(args) File "/home/leon/anaconda3/envs/facechain/lib/python3.10/site-packages/accelerate/commands/launch.py", line 628, in simple_launcher raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)

2016geek avatar Sep 10 '23 15:09 2016geek

对的,这里会size mismatch,因为有权重初始化。自定义的lora维度没有相应的初始化权重会报错。后续会支持一些新维度的lora初始化权重。

sunbaigui avatar Sep 10 '23 16:09 sunbaigui