Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make checkpoint loading more informative #125

Closed
surajpaib opened this issue Jun 3, 2024 · 1 comment
Closed

Make checkpoint loading more informative #125

surajpaib opened this issue Jun 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@surajpaib
Copy link
Collaborator

Currently,

when checkpoint state_dict and model dict do not overlap, the error thrown is:

ValueError: There is no overlap between checkpoint's and model's state_dict. Check their `state_dict` keys and adjust accordingly using `ckpt_prefix` and 
`model_prefix`.

I think listing the first and second key samples would be very useful.

For ex.

ValueError: There is no overlap between checkpoint's and model's state_dict. Check their `state_dict` keys and adjust accordingly using `ckpt_prefix` and 
`model_prefix`.

Debug:
Model `state_dict` contains keys that look like:  '_orig_mod.encoder.layer1.conv.0'.....'_orig_mod.final_layer'...
Checkpoint `state_dict` contains keys that look like: 'encoder.layer1.conv.0', ..... 'final_layer'
@surajpaib surajpaib added the enhancement New feature or request label Jun 3, 2024
@ibro45
Copy link
Collaborator

ibro45 commented Jun 4, 2024

Wanna make it part of #76?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants