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
{{ message }}
Repository navigation
How to load the pretrained safesensor and continue to train? #13
Sorry for the trouble. I haven't verify this resuming feature yet. It seems that there are some random weights after initialization. Make sure the new weights are initialized as zeros. In addition, if there are some "unexpected" weights when loading the checkpoint, make sure all of them are remapped to "missing" weights. It can be realized by renaming the keys in the state dictionary and loading the dictionary to the model again.
@Little-Podi Hi,I want to make sure your words mean that we need to change the code to set the missing keys initialized as zeros in this case? As when I set these missing keys's value to zero, the samples_mp4_epoch00_batch0000_step000001.mp4 is still in that strange form
@Little-Podi Hi, thanks a lot for sharing the great work! I met the same question, could you share the checkpoint after stage1 for continue training? Thanks a lot!
@Little-Podi Hi,I want to make sure your words mean that we need to change the code to set the missing keys initialized as zeros in this case? As when I set these missing keys's value to zero, the samples_mp4_epoch00_batch0000_step000001.mp4 is still in that strange form
@zhoujiawei3 Hello,Do you find the answer about it?
Hello, When I finetune the LoRA layers using the pretrained weights, I meet such error: RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
Do you know how to solve it? Sorry to bother you, Thank you very much!
Activity
Little-Podi commentedon Jul 29, 2024
Sorry for the trouble. I haven't verify this resuming feature yet. It seems that there are some random weights after initialization. Make sure the new weights are initialized as zeros. In addition, if there are some "unexpected" weights when loading the checkpoint, make sure all of them are remapped to "missing" weights. It can be realized by renaming the keys in the state dictionary and loading the dictionary to the model again.
zhoujiawei3 commentedon Nov 7, 2024
@JunyuanDeng
Hi, have you resolved this issue? Could you please share how you did it? Thank you!
zhoujiawei3 commentedon Nov 10, 2024
@Little-Podi Hi,I want to make sure your words mean that we need to change the code to set the missing keys initialized as zeros in this case? As when I set these missing keys's value to zero, the samples_mp4_epoch00_batch0000_step000001.mp4 is still in that strange form
jywu511 commentedon Dec 25, 2024
@Little-Podi Hi, thanks a lot for sharing the great work! I met the same question, could you share the checkpoint after stage1 for continue training? Thanks a lot!
zzz5y commentedon Jan 8, 2025
@zhoujiawei3 Hello,Do you find the answer about it?
hungdche commentedon Jan 21, 2025
Upon inspection,
vista.safetensorsdoes not appear to containmodel_emaweights. I manually enableinit_emain this line and it seems to work.jywu511 commentedon Mar 6, 2025
@hungdche, Hi, thanks for your response! Do you mean that we always set "model.reinit_ema()"?
johnren-code commentedon May 24, 2025
Hello, When I finetune the LoRA layers using the pretrained weights, I meet such error:
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fnDo you know how to solve it? Sorry to bother you, Thank you very much!