Skip to content

Missing keys in state-dict when loading model from checkpoint #1

Description

@joshbarua

While loading the state_dict from checkpoint['model_state_dict'] on line 89 in label.py, I got the following error:

RuntimeError: Error(s) in loading state_dict for DataParallel:
Missing key(s) in state_dict: "module.bert.embeddings.position_ids".

I downloaded the checkpoint file directly from the google drive folder here. Would setting strict=False when loading the state_dict significantly hurt performance? Thank you for your help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions