Skip to content

请问如果用自己的数据进行微调的话,怎么解决模块加载时,形状不匹配的问题? #165

@Wbxxx

Description

@Wbxxx

RuntimeError: Error(s) in loading state_dict for Embedding:
size mismatch for weight: copying a param with shape torch.Size([18993, 256]) from checkpoint, the shape in current model is torch.Size([2559, 256]).

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