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 }}
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
Saving aggregated checpoint for language modeling transformer gives error
RuntimeError: Error(s) in loading state_dict for LanguageModelingTransformer:
Missing key(s) in state_dict: "model.lm_head.weight".
To Reproduce
frompytorch_lightning.utilities.deepspeedimportconvert_zero_checkpoint_to_fp32_state_dictconvert_zero_checkpoint_to_fp32_state_dict(
"./recreate_model/epoch=0-step=363.ckpt/",
"./recreate_model/pytorch_model.bin"
)
# Load best model from aggregated checkpoint filebest_model=LanguageModelingTransformer.load_from_checkpoint(
"./recreate_model/pytorch_model.bin"
)
The text was updated successfully, but these errors were encountered:
🐛 Bug
Saving aggregated checpoint for language modeling transformer gives error
To Reproduce
The text was updated successfully, but these errors were encountered: