Skip to content

Index out of range in self #20

@Old-Lan

Description

@Old-Lan

The vocab size of the sentence encoder is 50256, but the vocab size of the generator is 30522. This will cause the index out of range.
The code is follow:
cls.generator(mlm_input_ids, attention_mask) mlm_input_ids.min()=0 mlm_input_ids.max()=50264
How should I initialize them so that they can be consistent?

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