WizardLM
WizardLM copied to clipboard
Error loading fine-tuned wizard model
Hi guys, I have used your fine-tuning script on a custom data set to fine tune the wizardLm model. The training works without problems, the loss decreases and all the relevant model files are stored in the specified output directory. However I checked the size of the pytorch_model.bin and it is only 623 KB large so I guess the error must be within saving the model. I used the model "TheBloke/wizardLM-7B-HF" from HuggingFace as base model for finetuning. If I try to load the model for inference using the inference_wizardlm.py script giving it the output_directory specified during training it turns up this error:
'Traceback (most recent call last):
File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/dolly-gpu-a100/code/Users/adrian.gabriel/WizardLM/src/inference_wizardlm.py", line 132, in
Have you solved this problem? I am also facing the same issue.
+1
I have fixed it. This error may be caused by uncomplete checkpoints (check the size of checkpoint dir).
---- Replied Message ---- | From | Xianzhen @.> | | Date | 06/30/2023 23:56 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [nlpxucan/WizardLM] Error loading fine-tuned wizard model (Issue #25) |
+1
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I have fixed it. This error may be caused by uncomplete checkpoints (check the size of checkpoint dir). … ---- Replied Message ---- | From | Xianzhen @.> | | Date | 06/30/2023 23:56 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [nlpxucan/WizardLM] Error loading fine-tuned wizard model (Issue #25) | +1 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Thank you so much!
I have fixed it. This error may be caused by uncomplete checkpoints (check the size of checkpoint dir). … ---- Replied Message ---- | From | Xianzhen @.> | | Date | 06/30/2023 23:56 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [nlpxucan/WizardLM] Error loading fine-tuned wizard model (Issue #25) | +1 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I met the same problem. My pytorch_model.bin is also only 623 KB, could you teach me how to fix it? Thank you!