Skip to content

Missing keys in loading pretrianed weights #2

@GZWQ

Description

@GZWQ

Hi,

I received errors when loading the following models:

--source="openclip" --from_pretrained="xlm-roberta-base-ViT-B-32@laion5b_s13b_b90k"
--source="nllb-openclip" --from_pretrained="nllb-clip-base-siglip@v1"

The errors are:
RuntimeError: Error(s) in loading state_dict for CustomTextCLIP:
Missing key(s) in state_dict: "text.transformer.embeddings.position_ids".

Do you have any ideas of why the loading failed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions