Skip to content

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

@joshbarua

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.

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